On 2013-10-06 16:22:14, Joey Hess wrote: > Antoine Beaupré wrote: >> + self.zbarframe.set_size_request(500,500) > > This works well for me. QR code is now quite large and > video window is a good size. > > The video is a bit laggy still, probably because it's > moving a lot of data around. Comparing with eg, cheese, > which must set the camera to a lower res and so has a much > less lagged video display.
Does it change the resolution or truncate the widget? Let's see if we can try something else. The only thing i found to change the webcam resolution is with OpenCV. Really horrible, because that's a huge library to load just for that, but it's worth trying.. Could you try the following script, changing the resolution? http://stackoverflow.com/questions/11420748/setting-camera-parameters-in-opencv-python Or, if you please, the following: #! /usr/bin/python # apt-get install python-opencv for this import cv2 # capture from camera at location 0 cap = cv2.VideoCapture(0) # try to change the width and height cap.set(3,800) cap.set(4,600) while True: ret, img = cap.read() cv2.imshow("input", img) key = cv2.waitKey(10) if key == 27: # escape quits break cv2.destroyAllWindows() cv2.VideoCapture(0).release() If this makes the window smaller and less laggy, maybe I can try to factor this into monkeysign... A. -- I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?' - Mike Godwin, Electronic Frontier Foundation
pgpCo_Vjaihnc.pgp
Description: PGP signature

