Package org.hivevisionftc.vision
Class Detection
java.lang.Object
org.hivevisionftc.vision.Detection
A single detected game element, located in field coordinates.
-
Constructor Details
-
Detection
- 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 1area- how much of the image the element fills, as reported by the cameraclassId- the detector's class id
-
-
Method Details
-
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
-