MULTICOLOR DETECTION AND SELECTION
Hi, I am going to use pixycam as the sensor on mobile robots to follow color lines , for example a red line and also a blue line. The pixycam is taught with two colors signatures which is the red and the blue. There is one problem when it detects red and blue lines at once, how to tell the camera that , only to select one of the colour out of two detected colours. Is there any codes to tell the pixycam, to select only one colour out of two signatures taught? Thanks in advance.
RE: MULTICOLOR DETECTION AND SELECTION - Added by Edward Getz 3 months ago
There is no way to tell Pixy to only return objects of one signature and ignore all others. You can simply ignore the object blocks of the signature(s) you're not interested in though. You can also reset the signature(s) you're not interested in, but you would need to do this through PixyMon.
Hope this helps!
RE: MULTICOLOR DETECTION AND SELECTION - Added by K ZJ 3 months ago
Thanks for your reply. What do you mean by ignore the object blocks of the signatures that I'm not interested in? Could you show how could this be done when the pixy is connected to arduino?
I would like to tell the robot to choose different path with different colours, but as your reply before, there is no way to tell pixy to only return one signature and ignore others. Is there any alternative to achieve the same target , which is choosing the desired path when the robot is told to do so.
Hope to get your feedback. Thanks!
RE: MULTICOLOR DETECTION AND SELECTION - Added by Edward Getz 2 months ago
Pixy will send all detected objects of all signatures to your Arduino. The code in your Arduino can then look at the signature number of each object block and choose to "ignore" the detected object if it's a signature that you want to ignore, or not. Does that make sense?