Taking single images from webcam: Less bizarre way of doing it?
-
I have a usb camera streaming with mjpg_streamer. How can I get a snapshot file saved that is less bizarre than how I am doing it now.
How I am doing it now:
mjpg_streamer -b -i "input_uvc.so -d /dev/video0"and then every time I want a snapshot I do:
wget -O /tmp/capture.jpg http://127.0.0.1:8080/?action=snapshotThis works but it offends my sensibilities. Isn't there a cleaner way to do this?
Thanks in advance,
Alan
-
@Alan-Smith I think thats the way how you shot images with webcams - thats why i decided to use gphoto2 library to shot photos from a camera.
Well, that wont be an alternative for you if you need to take videos also. Anyway it may be worth to have a look on the library because some webcams are supported also:
http://www.gphoto.org/doc/remote/
https://community.onion.io/topic/612/remote-control-camera-with-gphoto2Cheers Ben