I need a small-footprint Python program that watches a live webcam feed on my desktop, recognises visible flames in real time with OpenCV, and immediately triggers two responses: • a pop-up or full-screen visual warning on the PC; • an automatic email alert sent to a configurable address. Accuracy and low latency are more important to me than fancy UI work. The core of the job is a reliable flame-detection model, preferably using colour segmentation plus motion analysis or a lightweight CNN if that proves markedly better. All code must run locally under Windows 10 (Python 3.10, OpenCV 4.x). Deliverables 1. Well-commented Python script(s) with clear setup instructions. 2. A requirements.txt for any external libraries. 3. Simple configuration file or section for camera index, SMTP credentials, recipient email, and alert text. 4. Short README that explains how to launch, test, and fine-tune sensitivity thresholds. Acceptance will be based on a demo video or live screen-share showing: • detection of an open flame within two seconds; • visual warning appearing on screen; • confirmation email received; • false positives kept to a minimum when ordinary ambient light or people move through the frame. If you have earlier work with OpenCV-based detection, especially fire or smoke, please mention it so I can gauge fit quickly.