Welcome to RobotBox!

RobotBox is a community for robot builders to show off their projects. Add yours today.

Features of RobotBox

  • Showcase projects
  • Make new friends
  • Rate other's robots

Note: Facebook Connect temporarily disabled. Go here to login without it.

Gameboy Camera Prototyping

bot-thoughts's picture
Related project: 

Got the gameboy camera interfaced with Ardweeny, talking to java app on the pc... am able to capture pics, adjust registers, save pic, etc... flame detection software running on pc seems to work pretty well... about to try migrating to the AVR for onboard processing of the pics.  Lots of refinement to do... that's just the vision stuff... lots more to do before the firefighting competition! :)

Comments

bot-thoughts's picture

Target acquired and locked

Target acquired and locked on!

Candle flame target acquired!

The object detection is now running on the Ardweeny and telling the PC client the bounding box coordinates for each detected bright spot so that it can draw a bright green box for each. Whee!

bot-thoughts's picture

Are you saying I'm behind the

Are you saying I'm behind the times?? :) :) :)  I am, but I'm also cheap. :) You're right, it's a 128x123 pixel black and white. Got two for a total of about $20 shipped so hard to beat the price. 

The small resolution and grayscale helps too.  And I think the built in edge detection/extraction may come in handy later.  And it's documented well enough that I was able to retrace others' footsteps.

I'm using a simplified flood fill algorithm to identify only bright objects while determining the bounding box around each with a simple min/max for x and y coordinates.

I haven't gotten to a point of performance measurements -- It's sending the image data over serial as it arrives, it so it's not a fair test yet.

But, the AVRcam can somehow do 30fps color object tracking with an ATmega8 (probably running 16 or 20MHz?). Surely I can match that, using external ADC, of course, to achieve the necessary 500KSPS.

The long term plan is to play with more sophisticated image processing, obstacle detection, collection/avoidance, and particularly stereo imaging. That's why I picked up two in matching color :) 

Bottom line, I want a cheap vision solution for my cheap robots :)  I basically woke up one day and decided that my robots have to be able to see. I think they will be able to do more interesting things if they are able to perceive through vision.

Whether now or eventually I will most likely switch to a Propeller to drive the thing as I think I can get a lot more done in less time than just finding intensely bright things in a room. :)

gallamine's picture

bot-thoughts, wow! I remember

bot-thoughts, wow! I remember the Gameboy Camera from a long time ago. I didn't think anybody was still hacking on them! I think I still have one in a box somewhere - I never managed to get it interfaced.

If I recall, it was a 128x128 resolution? How long does it take for you to clock in a whole image? What sort of algorithm are you using to find the camera flame in the image?