ImageAI icon indicating copy to clipboard operation
ImageAI copied to clipboard

How can I do to make that the processed video stream is playing in real-time to users in ImageAI?

Open Haicaji opened this issue 1 year ago • 1 comments

Hello. How can I do to make that the processed video stream is playing in real-time to users in ImageAI? Instead of users viewing through saved files after processing.

Thank you!

Haicaji avatar Jun 21 '23 14:06 Haicaji

You can easily do this by replacing the variable input_file_path=os.path.join(execution_path, "traffic.mp4") in line 56 with camera_input=cv2.VideoCapture('<camera_stream_input>') ,
e.g camera_input=cv2.VideoCapture(0) in the example file video_analysis_per_frame.py

OlafenwaMoses avatar Aug 26 '23 12:08 OlafenwaMoses