[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame + VideoCapture?



Have you tried other resolutions?

Some cameras can only get certain resolutions.  Is there a way to list
available resolutions with that library?  Otherwise look up your
camera model on the net, and find the resolutions that way.

Please let the mailing list know how you get along... I'm interested
in webcam stuff too :)

Cheers,


On 10/12/07, AlgoMantra <algomantra@xxxxxxxxx> wrote:
> Hi, I've been playing with the VideoCapture module to get a webcam working.
>
> It does work but only at 160,120 resolution and this is the error
> I get:
>
> Traceback (most recent call last):
>   File "C:/Documents and
> Settings/user/Desktop/flutera/webcam.py", line 8, in
> <module>
>      webcam.setResolution(640,480)
>   File "C:\Python25\lib\VideoCapture.py", line 90, in
> setResolution
>     self.dev.setresolution(width, height)
>  Error: Cannot set capture resolution.
>
> Can anyone help with this? I'm on XP...
>
>
>