OlafenwaMoses/ImageAI

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

Haicaji opened this issue · 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!

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