Webcam connection with Arduino

Hi,

I was wondering if someone can help me figure out how i would get connection between Arduino duemilanove(ATmega 328) and webcam.

Another question is that if i get arduino wireless transmission APC220, i should be able to create wireless connection between pc and Arduino duemilanove ATmega 328 right.

Thanks

Thanks for repling

My question is how would i interface webcam(any webcam) with arduino.

  • What i want to do is that i want to connect webcam and arduino to take still image and then transmit single to pc and save that image as a file

take this as an example..
http://www.glacialwanderer.com/hobbyrobotics/?p=13

so instead of camera i want to use webcam

There are a pretty big difference here.

The example only gives the camera the "trigger" signal to tell it to take a picture. You want the webcam to send the entire picture to the arduino, and then transmit it wireless to a computer.

This is my school project and for that i have to build red light traffic camera so whenever webcam takes an image it transmit over to pc.

what i want to do is:

  • How you would trigger webcam to take a picture.
  • Then i want to transmit that image to pc
  • After that image is going to be uploaded on site

Easy answer, USB camera connected directly to a computer.

I think what you need to look at is how to control a webcam directly from a computer.

Maybe something like this can be used

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10

what i want to do is:

  • How you would trigger webcam to take a picture.
  • Then i want to transmit that image to pc
  • After that image is going to be uploaded on site

You can get a wifi IP cam (~$80) and have the pc request a photo when you want one.

Thanks for replying

the thing is if i do that then how will the camera know its red light now...i want to take an image when a car passes through red light...and then transmit that image to pc

Thanks again for replying

so inorder for the camera to know that light is red i need to connect to Arduino becuase i m making the lights model using arduino

the thing is if i do that then how will the camera know its red light now...i want to take an image when a car passes through red light...and then transmit that image to pc

Well, is this your project or the forum's project? I suggest you synchronize the cam with the traffic light. How you do this would appear to be part of the task you have assigned yourself to get a grade. They use to call it homework. :wink:

Thanks for replying

I am trying my best to explain what i want to do and i am new to almost everything that's why there is lot of confusion. I don't mean to make u ask me 20 questions

I am building everthing from scratch....basically what i want to build is a red light traffic camera and make a ticket by pulling information from database

  1. I will build traffice lights using arduino duemilanove(ATmeg 328)

  2. Have webcam to take an image if any car passes throgh red light

  3. transmit image over to pc which will be saved as a file so it can be uploaded to a site

that can be done like http://www.elechouse.com/elechouse/index.php?main_page=product_info&products_id=316

  1. on the otherside we have database ...from where we can just entre the car plate number and information will be displayed inorder to send the ticket

If you are doing this out in the Real World, remember that posting pictures of random members of the public (and especially if you are alleging that they ran a red light) is probably illegal and can get you (and your school) into big trouble.

Generally one can take photographs in public places where there is no general expectation of privacy (look at all the hollywood pix of Brittany Spears getting out of the car!). One can generally state the observable actions. The news media often uses terms like "alleged killer" instead of saying a person is a killer.

I know Its confusing but thank you for taking out the time to reply
Thanks

  • No the user will read the plate number from the image and entre it into the system to make the ticket

  • This is only within the laboratory

  • these are two separate parts

  • first one will have the following:

  • traffic lights circuit

  • Camera

  • Transmitting singal to pc

  • Second part will do the following
    -PC receives image and saves into a file and then it uploades on to the site

  • user looks at the image and entres the car plate number into the database to create the ticket

If you have a webcam to attach to your pc, you can start tinkering with taking the pix. Webcam2000 (free) is a simple web cam application that can supply single pix on request. Below is an old page of mine that shows a simple setup to take timed pix. The dhttp application can be replaced with a javascript application made using notepad.

http://web.comporium.net/~shb/webcamsetup.htm

hello :slight_smile:

for reference, see this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1289331318/0

What I would like to do is transmit live video from an rc glider/airplane in flight. clearly, an arduino can't handle this. Short of placing a laptop in the airplane, are there any suggestions? one friend suggested using the camera on a cell-phone, but then you have to pay for the data transfer every time. there are lots of small computers out there, many of them also very expensive. if the desired range is less than, say, 200 ft, any suggestions? less than 100m?

.. I am now checking out this forum for more info: Aerial Photography and Video - RCU Forums

.. I suppose the main reason I posted here at all is that I really like the concept of arduino, open-source, and diy. if no arduino currently exists that can do this, perhaps it is time one was develloped?