-1

I am doing a project of automation in which I want to check if an object is OK or NOT by using a USB webcam.

So I am using a proximity sensor to detect if object is in front of the webcam. If it is there, I want to send a signal to the webcam to capture an image via Arduino Uno. How do I do that?

After capturing the image, data will be saved and processed in the Arduino. How do I do the webcam & Arduino interfacing?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Kushal Shah
  • 9
  • 1
  • 2

1 Answers1

2

Typically, you would use the proximity sensor to continuously read values and in case there is a change, the Arduino can send a signal over the serial port.

On the computer side, you can read from the serial port and trigger the webcam using a script.

In Python, it is possible using the PySerial module and it is easy to link Python scripts to a webcam to take pictures. Read an example here.

(You should do some more research on this. There are already a lot of solutions out there to trigger using sensors. See this one for high speed photography: http://www.glacialwanderer.com/hobbyrobotics/?p=11)

Community
  • 1
  • 1
Nandeep Mali
  • 4,456
  • 1
  • 25
  • 34
  • Thanx... Actually I am new to arduino.. And I dont know python or python script lang... So I was looking for some simple solution. But I think now I have to learn it.. Ill try for this solution... – Kushal Shah Sep 08 '12 at 07:01
  • 1
    There is no shortcut to learning. Try exploring the Arduino forums and go through the basic tutorials on http://arduino.cc. If this was helpful then do accept it as an answer so the question doesn't remain open. – Nandeep Mali Sep 08 '12 at 08:12