Why Opencv Uses Multi-Threading To Process Video Frames; Single Thread Processing Of Video Frames - ADEEPT AWR Wheeled Robot Manual

4wd smart robot kit compatible with raspberry pi 4 3 model b+ b, opencv target tracking
Table of Contents

Advertisement

88
17 Why OpenCV Uses Multi-threading to
Process Video Frames
●The OpenCV function is based on the GitHub project flask-video-streaming, we changed the
camera_opencv.py to perform OpenCV related operations.

17.1 Single Thread Processing of Video Frames

● First, we introduce the process of single-thread processing of video frames. Let 's start with a simple
one, so that you will understand why OpenCV uses multiple threads to process video frames. The process of
single-thread processing of video frames is as follows:
● Process explanation: First obtain a frame from the camera, and then use OpenCV to analyze the
content of this frame. After the analysis is completed, the information to be drawn is generated, such as the
position of the center point of the target object, the text lamp information that needs to be generated on the
screen, then Draw those elements on the screen according to the generated drawing information, and finally
display the processed and drawn frame on the page.
●Such a processing flow will cause each frame to be collected to wait for the OpenCV related process to
be processed. After this frame is displayed, the second frame can be collected for processing and analysis to

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AWR Adeept Wheeled Robot and is the answer not in the manual?

This manual is also suitable for:

Picar-b

Table of Contents

Save PDF