-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Frame Loss in video stream #1510
Comments
@Rollson thanks for the notice. Please supply a Colab notebook with a reproducible example that we can look at. String encapsulation is up to you and has no effect on inference. |
@glenn-jocher. thanks for your response. anytime there is a frame loss in the stream, it shows this error: img = [letterbox(x, new_shape=self.img_size, auto=self.rect)[0] for x in img0] |
@Rollson so it seems that if there is a dropped frame, img will be equal to None, and this error will occur. Is there a way to reproduce this dropped stream event so we can test a fix? |
@glenn-jocher there is no way I can reproduce the dropped stream apart from testing with the stream url |
@Rollson ok understood. If you can debug and produce a fix that's working on your side then, we'd be happy to review it as a PR. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
❔Question
Hi, thank you for your great work:). Please I have 2 questions.
detect.py stops running any time there is a frame loss in the HTTP video stream. I tried modifying the datasets.py to be able to handle frame loss but I couldn't fix it. Please what part of the datasets.py or detect.py can I modify to fix this frame loss issue and any ideas on how to do it?
Also which is the proper way to specify the --source argument in detect.py. Is it
python detect.py --source "http://"
or
python detect.py --source http://
why am asking is because when the URL is not specified as a string (i.e when I run it this way: python detect.py --source http:// ) , detect.py only run for some seconds and then stops.
Thanks for your response:)
Additional context
The text was updated successfully, but these errors were encountered: