Java 类edu.wpi.first.wpilibj.image.CriteriaCollection 实例源码

项目:2014_software    文件:HotGoalDetector.java   
public void init()
{
    cc = new CriteriaCollection();
    cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, AREA_MINIMUM, 65535, false);

    ledState = Relay.Value.kOff;
}
项目:FRC623Robot2014    文件:VisionController.java   
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];
}
项目:RobotCode2013    文件:Vision.java   
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());
}
项目:Robotcode    文件:Team1482Robot.java   
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");
}
项目:2013ultimate-ascent    文件:GRTVisionTracker.java   
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();
}
项目:grtframeworkv7    文件:GRTVisionTracker.java   
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();
}
项目:Aerial-Assist    文件:AxisCameraM1101.java   
public AxisCameraM1101() {
    camera = AxisCamera.getInstance();
    criteriaCollection = new CriteriaCollection();
    criteriaCollection.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 
            AREA_MINIMUM, 65535, true);
}
项目:2014RobotCode    文件:CameraDetection.java   
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);
}
项目:Vision    文件:VisionSubsystem.java   
public void init() {
    camera = AxisCamera.getInstance();
    cc = new CriteriaCollection();
    cc.addCriteria(NIVision.MeasurementType.IMAQ_MT_AREA, 200, 65536, false);
}
项目:Team_1482_2013    文件:vision.java   
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);

}
项目:Team_1482_2013    文件:vision.java   
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);
}