<< return to Pixycam.com

How to toogle between line tracking mode ( B&W) and colored detection mode

Hey there!

I’d like to know if its possible to toogle between those two modes. I’m working in application which is a line follower robot that uses a color pattern to decides which intersection to turn. So it would be fairly usefull if we can toogle between those modes.

Best Regards!

S.M

Hello,
You can use changeProg() to change the program between line tracking and ccc.
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:general_api

e.g.

pixy.changeProg("color_connected_components");
pixy.changeProg("line");

Edward