Class ObjectDetectionConstants
java.lang.Object
frc.alotobots.library.subsystems.vision.photonvision.objectdetection.constants.ObjectDetectionConstants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CameraConfig[]
static final GameElement[]
static final int
The number of detections to save in history, the smaller the better, but still needs to be enough to ensure we have a good detection.static final int
Number of missed detections IN A ROW of a stable object for it to be removed from the stable liststatic final GameElement
static final int
Number of detections in history that need to be detected with that object for it to be considered stablestatic final double
Scale Factor. -
Constructor Summary
-
Method Summary
-
Field Details
-
CAMERA_CONFIGS
-
NOTE
-
GAME_ELEMENTS
-
HISTORY_LENGTH
public static final int HISTORY_LENGTHThe number of detections to save in history, the smaller the better, but still needs to be enough to ensure we have a good detection. Remember, the loop time is about 20ms 1s = 50 frames- See Also:
-
REQUIRED_DETECTIONS
public static final int REQUIRED_DETECTIONSNumber of detections in history that need to be detected with that object for it to be considered stable- See Also:
-
MISSING_FRAMES_THRESHOLD
public static final int MISSING_FRAMES_THRESHOLDNumber of missed detections IN A ROW of a stable object for it to be removed from the stable list- See Also:
-
SCALE_FACTOR
public static final double SCALE_FACTORScale Factor. Tune this if the ObjectDetection is consistently under/over reporting- See Also:
-
-
Constructor Details
-
ObjectDetectionConstants
public ObjectDetectionConstants()
-