Go Down

Topic: interfacing webcam (Read 1 time) previous topic - next topic

yash92ec

hi....
I want to interface my laptop webcam with my arduino leonardo.
Is it possible that arduino sends command to computer and webcam captures the image?
if so, then please suggest me a way to do it....

HazardsMind

I highly doubt it, the buffer size of the image would be way too big for the arduino to handle. A still image might work though, but how will you view the image, what program would you use?
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

yash92ec

i m not storing image data to arduino.
But i wanted to just send a command my computer's webcam to capture the image.
so the need is only that i want to know is it possible that computer can understand command from arduino and captures the image?
Is it possible to write c-program that understand my command and capture the picture through webcam?

HazardsMind

Oh you just want to use the arduino to control the computer to take the image, yea that is possible if all you have to do is hit a key. Just do a search for arduino uno, duemilanove, leonardo Keyboard logoff.

Better yet someone else wanted to do something like this.

http://www.practicalarduino.com/projects/virtual-usb-keyboard
http://arduino.cc/forum/index.php/topic,39243.0.html
http://hackaday.com/2012/06/29/turning-an-arduino-into-a-usb-keyboard/
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

Pauly

You might try a program called GoBetwino, to go between Arduinio & the computer.
http://arduino.cc/playground/Interfacing/GoBetwino

PeterH


Is it possible that ... webcam captures the image?


That's not how it usually works. Usually, the USB host machine (presumably a PC) reads the image from the web cam and captures it in some form. In other words, the 'capture' part is performed by the PC application and not by the web cam. This implies that your problem is to find/create a PC application which can read the image from the web cam on demand, and provide a mechanism for the Arduino to tell it to do that. There are plenty of freeware applications which you can run from a command prompt to do this, and if you're using Microsoft Windows then you could use Gobetwino to run the application when the Arduino commands it.
I only provide help via the forum - please do not contact me for private consultancy.

zoomkat

You could use the below webcam2000 program on your pc and then make a get request to have webcam2000 take a picture from the web cam attached to the pc and download the immage.

http://www.webcam2000.info/
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

Go Up