-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Enhancements to WebcamVideoStream (VideoCapture Properties and Release) #177
base: master
Are you sure you want to change the base?
Conversation
@jrosebr1 Please consider this PR when you have time. Let me know if you have any feedback on it. Thank you! |
Not the maintainer, but thanks for this! I would suggest default setting the resolution to something like (10000, 10000), as this will force OpenCV to use the highest possible resolution of the camera, which it doesn't do by default. |
@makeworld-the-better-one I like your idea, but I'll leave it up to the maintainer to decide how they want this to work. I defaulted the resolution here to (320, 240) because that is the default in the other existing classes |
Thanks for the changes! |
@ariG23498 please consider this PR to fix a couple issues that are frequently reported by other users. |
Address a few limitations with WebcamVideoStream:
1.) Set resolution of the VideoCapture, or use a capture object with custom properties already set.
Based on feedback provided in #68 , the constructor has been improved to allow optional args for a VideoCapture object and a resolution tuple.
#68 (comment)
2.) Address #35 by releasing the VideoCapture when the WebcamVideoStream is stopped.
Thank you for the time you've already spent developing this awesome library.