Interfacing with OV7670 300KP VGA Camera Module

I just ordered the OV7670 300KP VGA Camera Module. I need to know if it is possible for it to determine the color of a card (it would be a solid color, black, white or blue), and based on the color, activate an LED that indicates what color is on the card (red for black, green for white, and off for blue). I would also like to know how to code it and interface it with the UNO. I'm kinda new to this so please break it down really simply for me! :wink:

Its for the sensor on a blackjack table if that helps you understand what I'm going for here.

Not Uno, You need Arduino Yun + OpenCV.

OpenCV (Open Source Computer Vision Library: http://opencv.org) is an open-source BSD-licensed library that includes several hundreds of computer vision algorithms.

sonnyyu:
Not Uno, You need Arduino Yun + OpenCV.

OpenCV (Open Source Computer Vision Library: http://opencv.org) is an open-source BSD-licensed library that includes several hundreds of computer vision algorithms.

Does that mean it will not work with the Uno? I only ask because I already have one..

mkatzaroff92:
Does that mean it will not work with the Uno? I only ask because I already have one…

It will not work with the Uno.

sonnyyu:
It will not work with the Uno.

Just out of curiosity, why will it not?

Uno:

  • ATmega328P: 8 bits MCU
  • Clock Speed:16 MHz
  • RAM:2 KB

Arduino Yun/Yun Shield:

  • AR9331: 32 bits CPU
  • Clock Speed:400 MHz
  • RAM:64 MB

I have a very similar project on the Raspberry Pi, it is in this month's issue of The MagPi:-
Free at:-

It uses OpenCV and I must say I was not very impressed with the the quality of that Library, it is very flaky. And getting the program to quit when you press the close button on the window is actually impossible. Also mouse movements anyplace seem to screw it up. And window controls were so laggy it was untrue. I used a quad core Raspberry Pi as well.

The main problem is in identifying the colours, this is because what looks to you like a solid colour is in fact a mish mash of values, making robust measurement hard.

Is there any way to jerryrig it to make it work with the UNO? It doesn't have to be a clear focused picture, and realistically, I would only need one pixel to measure the color (that's all the camera should be able to see)

SENSING COLOR WITH THE ARDUINO UNO AND THE TCS34725