So basically I have been trying to use this Vision sensor for a long time now. I have gotten it calibrated and it does detect a signature pretty well. When I run this code and hold the vision sensor up to the correct color it says it sees nothing and I have no idea why. vision.vex (4.5 KB)
There’s nothing fundamentally wrong with the code. Sig_1 does have a rather large value for range (11) which does imply that the lighting was bad or object not easy to be detected by the vision sensor. Here’s a revised version (with signatures for my sensor and objects) that I added some debug output to for you, let me know if this gives better results.
you could also try changing largestObject to objects[0] if sig_2 is set for objects much larger that sig_1, that will help workaround a known bug with largestObjects. vision_r1.vex (6.5 KB)