Class Detection

java.lang.Object
org.hivevisionftc.vision.Detection

public final class Detection extends Object
A single detected game element, located in field coordinates.
  • Constructor Details

    • Detection

      public Detection(Pose pose, double tx, double ty, double confidence, double area, int classId)
      Parameters:
      pose - where the element sits on the field (inches)
      tx - horizontal angle from the camera crosshair to the element, in degrees (positive is right)
      ty - vertical angle from the camera crosshair to the element, in degrees (positive is up)
      confidence - detector confidence, from 0 to 1
      area - how much of the image the element fills, as reported by the camera
      classId - the detector's class id
  • Method Details

    • getPose

      public Pose getPose()
      Field position of the element, in inches.
    • getX

      public double getX()
    • getY

      public double getY()
    • getTx

      public double getTx()
    • getTy

      public double getTy()
    • getConfidence

      public double getConfidence()
    • getArea

      public double getArea()
    • getClassId

      public int getClassId()
    • getType

      public BiobuzzClasses getType()