Vision sensor not detecting signature

When I use my code it does not detect my signature even is it is right in front of the sensor.

    int main() {
      // Initializing Robot Configuration. DO NOT REMOVE!
      vexcodeInit();
      
      while (true) {
        VisionSensor.takeSnapshot(1);
        if(VisionSensor.objects[1].exists) {
            Claw.spin(vex::directionType::fwd);
        } else {
          Claw.stop();
        }
        task::sleep(1);
    }
    }

/*vex-vision-config:begin*/

#include "vex.h"

vex::vision::signature BRICK = vex::vision::signature (1, -2131, -1513, -1822, 3619, 4417, 4018, 3, 0);

vex::vision::signature SIG_2 = vex::vision::signature (2, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision::signature SIG_3 = vex::vision::signature (3, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision::signature SIG_4 = vex::vision::signature (4, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision::signature SIG_5 = vex::vision::signature (5, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision::signature SIG_6 = vex::vision::signature (6, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision::signature SIG_7 = vex::vision::signature (7, 0, 0, 0, 0, 0, 0, 2.5, 0);

vex::vision Vision = vex::vision (vex::PORT20, 64, BRICK, SIG_2, SIG_3, SIG_4, SIG_5, SIG_6, SIG_7);

/*vex-vision-config:end*/

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.