Uh oh!
There was an error while loading. Please reload this page.
Enhancements to WebcamVideoStream (VideoCapture Properties and Release) - #177
Enhancements to WebcamVideoStream (VideoCapture Properties and Release)#177karjanme wants to merge 5 commits into
Conversation
karjanme
commented
Mar 19, 2020
@jrosebr1 Please consider this PR when you have time. Let me know if you have any feedback on it. Thank you! |
makew0rld
commented
Mar 25, 2020
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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
karjanme
commented
Mar 25, 2020
@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 |
makew0rld
commented
Mar 26, 2020
Thanks for the changes! |
karjanme
commented
Jan 27, 2022
@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.