You can run code with your own PC/Notebook/... or on Google Colab.
conda create -n [NAME] python==3.9
conda activate [NAME]
git clone https://github.com/ytl0623/yolov8-fire-car-and-smoke-detection.git
cd yolov8-fire-car-and-smoke-detection
pip install -r requirements.txt
cd ultralytics/yolo/v8/detect/
Change your desire email address in send_email.py
.
your_email =
your_password =
send_email_to =
Change the input of the image/video/rtsp/..., what ever you want.
python main.py
The output image is like the below.
If the model detected the fire and smoke, the command line shows output Warning Fire!!! Send Email!
and it will send email to desire person with the image contains bounding box.