6

import subprocess p1 = subprocess.Popen("sudo fswebcam -d /dev/video0 -r 1280x960 image.jpg", shell=True); p1 = subprocess.Popen("sudo fswebcam -d /dev/video0 -r 1280x960 image2.jpg", shell=True); p1.wait() p2.wait() The images will still not be acquired at exactly the same time, but you'll have somewhat better parallelism. There are lots of obvious, and ...


3

I was having a similar issue as well. To get rid of those malformed images try: sudo fswebcam -r 640x480 test.jpg -S 2 . The -S instructs it to skip a number of frames,in this case two. Hope it helps!


3

Probably a bit late, but i had the same issue and it was impossible to find information, maybe this i'll help someone. My Camera is almost exactly like the one in the photo, and it doesn't have a "sunny" connector. What fixed it for me was just unscrewing it completely, pressing lightly on the sides of the sensor module, and reattaching everything, except ...


2

From the troubleshooting section on the Pi Site for the Camera Error : ENOMEM. The Camera Module is not starting up. Check all connections again From troubleshooting basics .. "Is the Camera Module connector, between the smaller black Camera Module itself and the PCB, firmly attached? Sometimes this connection can come loose during transit or ...


2

I was having the same issue today, here are the steps I followed First, make sure you're using a powered USB hub. We will be resetting the USB to force the OS to reload the webcam. Start here and get the reset usb program: https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line Now we're able to force the OS to reload the ...


2

I believe sudo treats a plain # (hash or pound) character as a comment. You need to escape this character to make it work, like so sudo fswebcam --banner-colour \#ff0000 --png 9 -r 640x480 /var/www/image.jpg. I have not tried this with fswebcam, but on my Ubuntu desktop I did the following tests: $ sudo echo #ff0000 $ sudo echo "#ff0000" #ff0000 $ sudo ...


1

I'll turn my comment into an answer: Yes, it certainly is possible. I've read through a couple guides and my personal choice would be this Github. The readme provides a pretty good tutorial on how to get object detection working with TensorFlow on a Raspberry Pi. There are a few special instructions for users with a USB webcam instead of a Pi Camera, but ...


1

Phil's solution worked for me. I wanted to change the line colour as well, so I used: sudo fswebcam --banner-colour: \#000000 --line-colour \#ffffff --png 9 -r 640x480 /var/www/image.jpg That worked fine on its own, but when I tried to combine it with watch, I was encountering the same error, despite the hashtags being escaped. After some Googling, I was ...


1

I had the same issue with my Logitech C905 and was nearly giving up, but then I found the solution in a post on the raspberrypi.org forum :) https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=197089 The problem was fixed for my by adding the extra command dwc_otg.fiq_fsm_mask=0x3 in the file /boot/cmdline.txt. The reason why I didn't find it ...


1

Sorry for the delay posting this answer. As suggested by @SteveRobillard I've measured the voltage at the board while taking a photo and everything was OK. Using SIGUSR1 as suggested by @meuh did not help because it just wake up the webcam and ultimately it still needs few seconds to auto stabilize the exposure. In the end of the day, what solved my ...


1

Most webcams will reinitialize after doing an operation (e.g. taking a picture). You can also observe this behavior on most mobile phones. Best move would be to capture frames from a live video sequence, or look for a camera that won't reinitialize every after operation. Alternatively, you can try tinkering with the fswebcam's --set switch. Refer to the ...


1

It was a DV webcam: apt-get install dvgrab dvgrab - | mplayer -j They may be modules to install or load too (e.g modprobe raw1394)


1

I know this post is old, but I was looking for information about /dev/vc-cma and I've found this post. Only to document it if someone find this page with the same problem. I see you are running the command as user "pi". Into my system (raspbian jessie) I can see: crw------- 1 root root 250, 0 Jul 13 23:02 /dev/vc-cma So that, make sense the error ...


Only top voted, non community-wiki answers of a minimum length are eligible