<< return to Pixycam.com

One white line detection on grey background

Hello,
Im trying to remake pixy-cam software to be able to follow white line instead of using it for object detection. I have already some vehicle with its intern software so I dont wanna use another controling MCU (like arduino, rassberry-pi etc.). I just need from pixy cam to get information about where line is.
First issue Im fighting with is that if I need to rewrite actual software to get what I need or just to remake API or few methods.
Second issue is that camera will probably placed quite close to the line and will be heading forward in line direction to be able to predict future. So I need to somehow count with shape of line which is not now rectangle but trapezoid.

Summary:
Following white line
Vision is under angle

My question is if you could give me some ideas for solution or if u dont know some already writen code which fits in my needs.

Thank you for any response.

Hi Jindrich,

Pixy does not do well tracking white objects. It relies on hue (color) for its detection system, and white has no hue. Are you able to shine a colored LED on the white line? This would help with tracking.

Shape is not an issue; Pixy just expands any similarly-colored regions it sees with a connected components algorithm, and uses that as its color signature. So there is no shape tracking going on.

If you are interested in modifying the firmware, you can join our firmware SDK group: https://groups.google.com/forum/#!forum/pixy_firmware_sdk

Hope this helps!

Best,
Jesse