Uh oh!
There was an error while loading. Please reload this page.
added support to set web cam resolution - #68
Conversation
added support to increase default resolution of 640x480 by videoCapture() function
setting the resolution of the web cam given by user or else use the default of video capture of 640x480
wb666greene
commented
Nov 4, 2018
I like the idea, but webcams are all over the map in terms of what resolutions they will accept. Doing the set() doesn't mean the resolution has changed to what you requested or that it even changed at all. This needs to be followed with a get() to verify if the new resolution really happened or not. Then the question becomes how to best deal with not getting the requested resolution. |
| class WebcamVideoStream: | ||
| def __init__(self, src=0, name="WebcamVideoStream"): | ||
| def __init__(self, src=0, name="WebcamVideoStream" resolution=(640, 480)): |
There was a problem hiding this comment.
You missed a coma between name="WebcamVideoStream" and resolution=(640, 480) .
Otherwise everything is ok for me !
atakli
commented
May 5, 2019
I have done the same modifications but when I change the resolution to (a,b) for a webcam, it becomes (a/2,b/2). What is the possible reason for this? |
njern
commented
Sep 6, 2019
Any plans to merge this? |
cengiz7
commented
Oct 18, 2019
Somebody update this pr please :D |
jrosebr1
commented
Oct 18, 2019
I think a better, long-term solution would be for the
In the constructor we can check to see if it's an integer, and if so, instantiate our own Otherwise, we can instantiate our That way we can:
|
makew0rld
commented
Mar 26, 2020
#177 is a newer PR that does a similar thing. I can confirm it works. |
No description provided.