<< return to Pixycam.com

how to select (e.g.) the 4 largest blocks of each signature and each colorcode for processing?

I’m currently getting (partially) hundreds of blocks detected by the PixyCam of either signature -

how can I select the biggest (e.g., the 4 largest) blocks of each signature and each colorcode for further processing / robotic behaviour control?
(the small ones should be simply dropped)

Hi Helmut,
There are parameters you can adjust that might help – check this out, in particular, the min block size, which you can increase:

http://cmucam.org/projects/cmucam5/wiki/Blocks_Pane

thanks!

thank you!
I didn’t read so far that the blobs already are presorted by color and size when been sent to the Arduino -
so now I don’t need to sort them any more!

OTOH, I don’t know in advance how big or how numerous they may becom - if they are far way, there might be just a few little ones, and if they are close there might be lots of either size.

But now I’m fine with it since I finally know about the sorting order!

Thank you!