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
Modifier 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
-
Method Summary
-
Field Details
-
tagFamily
public int tagFamilyTag family. Default:Objdetect.DICT_APRILTAG_36h11
. -
threshMinSize
public int threshMinSize -
threshStepSize
public int threshStepSize -
threshMaxSize
public int threshMaxSize -
threshConstant
public double threshConstant -
errorCorrectionRate
public double errorCorrectionRateBits allowed to be corrected, expressed as a ratio of the tag families theoretical maximum.E.g. 36h11 = 11 * errorCorrectionRate = Max error bits
-
useCornerRefinement
public boolean useCornerRefinementIf obtained corners should be iteratively refined. This should always be on for 3D estimation. -
refinementMaxIterations
public int refinementMaxIterationsMaximum corner refinement iterations. -
refinementMinErrorPx
public double refinementMinErrorPxMinimum 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
public boolean debugRefineWindow -
useAruco3
public boolean useAruco3If 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
public double aruco3MinMarkerSideRatioMinimum side length of markers expressed as a ratio of the largest image dimension. -
aruco3MinCanonicalImgSide
public int aruco3MinCanonicalImgSideMinimum side length of the canonical image (marker after undoing perspective distortion).
-
-
Constructor Details
-
ArucoDetectionPipeParams
public ArucoDetectionPipeParams()
-
-
Method Details