Class ArucoDetectionPipeParams
java.lang.Object
org.photonvision.vision.pipe.impl.ArucoDetectionPipeParams
Detector parameters. See https://docs.opencv.org/4.x/d5/dae/tutorial_aruco_detection.html.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Minimum side length of the canonical image (marker after undoing perspective distortion).double
Minimum side length of markers expressed as a ratio of the largest image dimension.boolean
double
Bits allowed to be corrected, expressed as a ratio of the tag families theoretical maximum.int
Maximum corner refinement iterations.double
Minimum error (accuracy) for corner refinement in pixels.int
Tag family.double
int
int
int
boolean
If the 'Aruco3' speedup should be used.boolean
If obtained corners should be iteratively refined. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tagFamily
Tag family. Default:Objdetect.DICT_APRILTAG_36h11
. -
threshMinSize
-
threshStepSize
-
threshMaxSize
-
threshConstant
-
errorCorrectionRate
Bits allowed to be corrected, expressed as a ratio of the tag families theoretical maximum.E.g. 36h11 = 11 * errorCorrectionRate = Max error bits
-
useCornerRefinement
If obtained corners should be iteratively refined. This should always be on for 3D estimation. -
refinementMaxIterations
Maximum corner refinement iterations. -
refinementMinErrorPx
Minimum error (accuracy) for corner refinement in pixels. When a corner refinement iteration moves the corner by less than this value, the refinement is considered finished. -
debugRefineWindow
-
useAruco3
If the 'Aruco3' speedup should be used. This is similar to AprilTag's 'decimate' value, but automatically determined with the given parameters.T_i = aruco3MinMarkerSideRatio, and T_c = aruco3MinCanonicalImgSide
Scale factor = T_c / (T_c + T_i * max(img_width, img_height))
-
aruco3MinMarkerSideRatio
Minimum side length of markers expressed as a ratio of the largest image dimension. -
aruco3MinCanonicalImgSide
Minimum side length of the canonical image (marker after undoing perspective distortion).
-
-
Constructor Details
-
ArucoDetectionPipeParams
public ArucoDetectionPipeParams()
-
-
Method Details