This paper has provided a novel design idea and some implementation methods to make a real time detection of multi-areas with multiple detecting areas that are generated by the real time drawing on the screen display of the video. The drawing on the video will remain the output as polylines, and the colors of the outlines will change when the stage of drawing or detecting is changed. The shape of the drawn area is free to be customized and real-time effective. The configuration of the drawn areas can be renewed and the detecting areas are working individually. The detection result should be shown with a GUI designed by Tkinter. The object recognition model was developed on YOLOv5 but can be changed to others, which means the core design and implementation idea of this paper is model-independent. With PIL and OpenCV and Tkinter, the drawing effect is real time and efficient. The design and code of this research is basic and can be extended to be implemented in numerous monitoring and detecting situations.
翻译:本文提供了一个新的设计构想和一些实施方法,以便实时探测多区域的多区域,这些多区域的探测区域是实时从视频屏幕显示中提取的,从视频中提取的将继续作为多线输出,当绘图或探测阶段发生变化时,轮廓的颜色将发生变化。绘制区域的形状可以自由定制和实时有效。绘制区域的配置可以更新,探测区域正在单独运作。探测结果应该由Tkinter设计的图形界面显示。对象识别模型是在YOLOv5上开发的,但可以更改为其他模型,这意味着本文的核心设计和实施构想是独立于模型的。与PIL、OpenCV和Tkinter一起,绘图效果是实时和高效的。这一研究的设计和代码是基本的,可以在众多的监测和探测情况下推广实施。