[kamera commit] r68 - trunk/kamera

0 views
Skip to first unread message

codesite...@google.com

unread,
Jan 8, 2009, 11:57:16 AM1/8/09
to kamera-...@googlegroups.com
Author: ugur.jnmbk
Date: Thu Jan 8 08:45:36 2009
New Revision: 68

Modified:
trunk/kamera/opencvwidget.py

Log:
try forcing 640x480, it fixes the small image problem on some webcams

Modified: trunk/kamera/opencvwidget.py
==============================================================================
--- trunk/kamera/opencvwidget.py (original)
+++ trunk/kamera/opencvwidget.py Thu Jan 8 08:45:36 2009
@@ -24,6 +24,8 @@
def run(self):
camera = highgui.cvCreateCameraCapture(0)
fps = highgui.cvGetCaptureProperty(camera, highgui.CV_CAP_PROP_FPS)
+ highgui.cvSetCaptureProperty(camera,
highgui.CV_CAP_PROP_FRAME_WIDTH, 640)
+ highgui.cvSetCaptureProperty(camera,
highgui.CV_CAP_PROP_FRAME_HEIGHT, 480)
#30 fps if cam gives no value
if not fps > 0:
timeout = 33

Reply all
Reply to author
Forward
0 new messages