I'm trying to run a basic script to get a feed from my webcam using SimplecCV 1.3.0 with a Logitech HD C270 webcam(also tried Logitech tessar 2.0/3.7) on 64 bit Linux Mint 12.
When I trun the following script
from SimpleCV import *
cam = Camera()
while(True):
img = cam.getImage()
img.show()
A window pops up and I can see a camera feed. However, at seemingly random moments, the feed will freeze and throw the following error on every img = cam.getImage()
VIDIOC_DQBUF: No such device
libv4l2: error dequeuing buf: No such device
From that point on when I attempt to run the same script, the window opens for a moment, disappears, and I get the following error on the img = cam.getImage()
line of my script:
File "/usr/lib/pymodules/python2.7/SimpleCV/Camera.py", line 579, in getImage
if (not self.threaded):
AttributeError: Camera instance has no attribute 'threaded'
This error persists until I restart my computer and occurs whether my webcam is plugged in or not. Nevertheless, other webcam software(such as cheese) can still interface with the camera.
Did you try to something like:
cam = Camera(0)?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With