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!
>>>
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