cv-Webcam-Foto: "libv4lconvert: warning more framesizes..."

Hier werden alle anderen GUI-Toolkits sowie Spezial-Toolkits wie Spiele-Engines behandelt.
Antworten
Benutzeravatar
SwissMäc
User
Beiträge: 20
Registriert: Freitag 26. Februar 2010, 21:36

Ich möchte ab einer Logitech C310 Webcam (1280x960) ein Foto mit Python einzulesen...

Z.B. mit cheese funktioniert die Kamera, also sollte v4l OK sein.

Code: Alles auswählen

Python 2.6.5 (r265:79063, Oct 28 2010, 20:56:56) 
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
>>> import cv
>>> from opencv import highgui
>>> camera = highgui.cvCreateCameraCapture(0)
libv4lconvert: warning more framesizes then I can handle!
libv4lconvert: warning more framesizes then I can handle!
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
libv4lconvert: warning more framesizes then I can handle!
libv4lconvert: warning more framesizes then I can handle!
>>> 
Kann man das irgendwie beschränken ?

Was ist eigentlich der Unterschied von "cv" zu "opencv" ?
opencv kommt immer mit "AttributeError: 'module' object has no attribute 'LoadImage'" ?

Wenn jemand eine bessere/einfachere Möglichkeit kennt ein Foto zu machen, dann bitte her damit 8)
Antworten