Image recognition from webcam

Hello !

I am wondering if it would be possible to realize a very simple image recognition based on a Arduino Uno. In fact, the system would be autonomous : there would be a webcam, or a cheap image sensor, plugged directly into the board. On a regular basis, the Arduino would take a picture at a very low resolution (why not 320*240, even lower if necessarily) and extract the Red Color, from RGB matrix, to look for a peak...

I have no idea if it would be possible ?
Is it possible to capture image from any webcam ?
How to connect if it is an usb connector ?
Do we need any special camera like this one http://www.sparkfun.com/products/10061 ?
Any component like this one Video Frame Capture using the Video Experimenter Shield | Project Lab ?
etc...

Thanks !

The arduino cannot handle the data from any webcam. Not enough memory or processing power.

I was just expecting to take one photo every beginning of the loop... ?

Jimtonic:
I was just expecting to take one photo every beginning of the loop... ?

Not at 320x240 - but at half that - possibly. It won't be fast; it won't be easy - and you likely won't be able to do much more than just the image processing.

Look up a device called (IIRC) - AVRCam - it was a board, kinda like the CMUcam - that used an ATMega8:

http://www.jrobot.net/Projects/AVRcam.html

There's also Nootropic Video Experimenter shield:

So - it's kinda possible to do what you want to do; but you're likely going to need to "dedicate" the Arduino to the task, then communicate with it in some manner via a serial link or such (maybe - you might have enough room left over for a small bit of code - depends on what you need from your frame or line buffer; you don't -have- to process frames, btw - to do blob recognition, etc; take a look at how the AVRcam works, its code base, but info about the CMUcam and such).

Thank you ! :slight_smile:

Check out "http://www.riccibitti.com/witnesscam/entry/witnesscam.htm"
it's slow, not quite the resolution you stated, but close, and it can capture motion. ship the captured date to another avr ot pic for post processing against a mask or previous image. Pixel compares are a slow bear, but can be done.

Well, in fact I think we are going ton use a specific card, such as the cmucam. It seems this is really really designed to handle pictures and motions... It is much more expensive than an Arduino, but it will be ok !
Thanks all for your help