In order to quickly detect the early fire and improve the fire warning function,this paper studies the early fire video flame rec-ognition based on the YOLOv5s algorithm,and compares it with the YOLOv4-tiny and YOLOv3-tiny algorithms.The experimental re-sults show that the box loss of YOLOv5s has reduced 0.022 5 and 0.020 5 compared with YOLOv4-tiny and YOLOv3-tiny.YOLOv5s's precision has improved 0.136 1 and 0.050 7.In the video detection,YOLOv5s is the earliest to detect the flame,and the detection accu-racy has improved 0.22 and 0.21 compared with YOLOv4-tiny and YOLOv3-tiny.In the early small flame detection,the performance of YOLOv5s algorithm is better.
early flameYOLOv5s modelvideo detectionaccuracy rate