<< return to Pixycam.com

Lane keeping using pixy2

I know that pixy2’s line tracking algorithm is mainly for following a single line. I do see a function getAllFeatures() that can detect multiple lines .Can this be used in lane keeping ?

Hello,
The getAllFeatures() function will return all of the lines that it sees. If you had 2 lines that you were trying to keep between, you getAllFeatures() would tell you that there are two lines, and you could then calculate the center between the two lines.

Hope this helps!

Edward

1 Like

Thanks , let me try it out.