WebCam, Python, Ubuntu?

openCV:
http://opencv.willowgarage.com/wiki/#Welcome.2BAC8-Introduction.WhatisOpenCV.3F

lsusb:
Bus 003 Device 002: ID 093a:2621 Pixart Imaging, Inc. PAC731x Trust Webcam

http://www.jperla.com/blog/post/capturing-frames-from-a-webcam-on-linux

>>> camera = highgui.cvCreateCameraCapture(0)
HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream.: Bad file descriptor
HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV

fixed with:
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
(
http://stackoverflow.com/questions/5033253/grabbing-images-from-a-webcam-to-be-used-with-opencv
http://www.linuxtv.org/downloads/v4l-dvb-apis/libv4l.html#id2858949
)

other:
http://digg.com/newsbar/topnews/HOWTO_Using_a_webcam_in_Python

Advertisements

~ by nambabwe on 2012/01/11.

 
%d bloggers like this: