<< return to Pixycam.com

How to view the line tracking algorithm source code


#1

I want to learn your line tracking algorithm but I can’t find the location of the source code. Can you tell me which file it is in?


#2

Hi, the Arduino source code for the line tracking algorithm is here: https://github.com/charmedlabs/pixy2/blob/master/src/host/arduino/libraries/Pixy2/Pixy2Line.h

You might also find these references useful:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_api
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:protocol_reference#line-tracking-packet-reference

Hope this helps!


#3

Well thanks for reply I find those files,but there are only some send and receive requests. I want some line tracking algorithm about Image Processing in other words can i get the pixy->sendPacket() target’s code?


#4

Hello,
The core line tracking code is here:

I’ve looked at the code. It’s not the simplest code!

Edward