<< return to Pixycam.com

Two Function using One Pixy2

Hi, My team have a project, We are going to use Pixy2 for line follower and barcode detection, is it possible to work those 2 functions in just 1 pixy2?

Thankyou!

1 Like

Hi @pewpew

you’re in luck - both of those functions are included in the line follower mode! Note that it’s only possible to detect a small set of barcodes that we provide - see here: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_quickstart#barcodes

Hope this helps!

Cheers,
Jesse

Thankyou, for a quick response!
I would like to clarify that we are going to use Line Follower through color detection and while it is following the color line, it can also detect the barcode attached in an object, at the same time, is it possible for pixy2?

Hello,
The color connected components and line tracking are separate programs, but you can switch between them using the changeProg() function: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:general_api

You’ll lose several frames between program switching however.

Hope this helps!

Edward