Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Haicaji opened this issue Jun 21, 2023 · 1 comment

Comments

@Haicaji
Copy link

Haicaji commented Jun 21, 2023

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!

@OlafenwaMoses
Copy link
Owner

OlafenwaMoses commented Aug 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants