<< return to Pixycam.com

Image Processing Algorithm on Pixy

Hi Guys,I am doing a project “mobile robot-lane detection” and i wanne use the CMUcam5 Pixy and Arduino. Someone can tell me how to do that? It is possible that writing the Image Processing Algorithm on the microcontroller? It is really new to me… I need your help :slight_smile:

Thanks

Bin

Hi Bin,

I’d be happy to help you learn how to integrate Pixy in to your project. First thing to note is Pixy does best with colored objects, so hopefully you’re following a colored line. White or black will not do too well. The Arduino could receive the block data from Pixy and determine where on the screen the line is at. From these points, you could direct the robot to the right or left if the line starts to drift too far to one side.

This is the general idea as to how you might get started. If you have any more specific questions about using or connecting Pixy, just let me know.

Scott

Hi Scott,

thank you!

I have to say I am following a white line (Background Color Black) :frowning: I have tried using Pixy to follow “white” and it is true that it does not well. Do you know another Method to do that? Maybe edge detection? Is that possible with CMUcam5?

Bin

Hi Bin,

Edge detection would work, but it would be a bit more difficult using Pixy. Our libraries do not provide raw image data, so you’d have to modify the firmware yourself. There have been other users on this forum that have changed the firmware to detect white objects (via luminance or other methods). I think your best bet is to look in to that.

Good luck!

Scott