<< return to Pixycam.com

Pixy2 problems with moths

I’m completely new to Pixy and am trying to recognize small moths caught in a sticky trap. The moths are gray/black on a white background but i can’t seem to recognize them. Any tips for a newbie?

Hello,
Pixy’s color algorithm needs a decent color hue to detect (sorry):

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:teach_pixy_an_object_2

You might consider using the getRGB interface, which will tell you if certain regions of the image have changed color/intensity:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:video_api

Edward