public void init() { cc = new CriteriaCollection(); cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false); ledState = Relay.Value.kOff; }
private VisionController() { camera = AxisCamera.getInstance(); cc = new CriteriaCollection(); // create the criteria for the particle filter cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false); target = new TargetReport(); verticalTargets = new int[MAX_PARTICLES]; horizontalTargets = new int[MAX_PARTICLES]; }
public Vision() { if (enableVision) camera = AxisCamera.getInstance("10.25.2.11"); lastFrame = System.currentTimeMillis(); frameProcess = 0; cc = new CriteriaCollection(); cc.addCriteria(MeasurementType.IMAQ_MT_AREA, 3000, 6000, false); distanceReg = new Regression(0.0000086131992, -0.0893246981, 244.5414525); // a, b, c angleReg = new Regression(15.32142857, -565.2928571, 5720.678571); // a, b, c SmartDashboard.putNumber("Angle Regression Constant", angleReg.getConstant()); }
public void robotInit() { camera = AxisCamera.getInstance(); cc = new CriteriaCollection(); cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_WIDTH, 0, 0, false); cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_HEIGHT, 0, 0, false); //todo: check WPILibJ documentation SmartDashboard.putBoolean("Grab state", false); SmartDashboard.putBoolean("Lift state", false); System.out.println("RobotInit() completed. \n"); }
public GRTVisionTracker(AxisCamera cam) { super("Vision Tracker", NUM_DATA); this.camera = cam; this.cc = new CriteriaCollection(); // create the criteria for the particle filter cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 500, 65535, false); X_IMAGE_RES = camera.getResolution().width; listeners = new Vector(); }
public AxisCameraM1101() { camera = AxisCamera.getInstance(); criteriaCollection = new CriteriaCollection(); criteriaCollection.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, true); }
public CameraDetection(){ //camera = AxisCamera.getInstance(); System.out.println("Started Camera."); cc = new CriteriaCollection(); // create the criteria for the particle filter cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false); }
public void init() { camera = AxisCamera.getInstance(); cc = new CriteriaCollection(); cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 200, 65536, false); }
vision() { camera = AxisCamera.getInstance("10.14.82.12"); cc = new CriteriaCollection(); // create the criteria for the particle filter cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 500, 65535, false); }
public void robotInit() { //camera = AxisCamera.getInstance(); // get an instance of the camera cc = new CriteriaCollection(); // create the criteria for the particle filter cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false); }