Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 polling resolution can depend on current pixelmode

open
nobody
None
5
2009-08-20
2009-08-20
simon wood
No

logitech notebook cam
--
simon@bourne:~/pyDataMatrixScanner-svn$ ./pyv4l2.py
Available devices: ['/dev/video0']
----
Device:
/dev/video0
Capabilities:
Capture
ReadWrite
Streaming
Input 0:
Name: Camera 1
Type: camera
Standards: []
Pixel formats:
MJPG MJPEG
YUYV YUV 4:2:2 (YUYV)
Resolutions:
320x240
640x480
160x120
176x144
432x240
480x360
512x288
640x360
704x576
864x480
960x720
simon@bourne:~/pyDataMatrixScanner-svn$ ./pyDataMatrixScanner.py -p YUYV -x 320 -y 240 -g -a -D -f 5
started capture
terminating...
Stopped capture: frames = 10 , delta = 5.636497 , fps = 1.77415156967
terminated
simon@bourne:~/pyDataMatrixScanner-svn$ ./pyv4l2.py
Available devices: ['/dev/video0']
----
Device:
/dev/video0
Capabilities:
Capture
ReadWrite
Streaming
Input 0:
Name: Camera 1
Type: camera
Standards: []
Pixel formats:
MJPG MJPEG
YUYV YUV 4:2:2 (YUYV)
Resolutions:
1280x960
simon@bourne:~/pyDataMatrixScanner-svn$
--

Discussion

  • simon wood
    simon wood
    2009-08-26

    Should use the 'enum' framesize call rather than polling at different resolutions, or at least confirm that the returned size is the same that you asked for.