Skip to content

Commit

Permalink
Actually set detector params
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 19, 2023
1 parent ab68283 commit e7eecbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ public ArucoDetector getDetector() {
return detector;
}

/**
* Get a copy of the current parameters being used. Must next call setParams to update the
* underlying detector object!
*/
public DetectorParameters getParams() {
return params;
}

public void setParams(DetectorParameters params) {
detector.setDetectorParameters(params);
}

/**
* Detect fiducial tags in the grayscaled image using the {@link ArucoDetector} in this class.
* Parameters for detection can be modified with {@link #setDetectorParams(DetectorParameters)}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public void setParams(ArucoDetectionPipeParams newParams) {
detectParams.set_useAruco3Detection(newParams.useAruco3);
detectParams.set_minSideLengthCanonicalImg(newParams.aruco3MinCanonicalImgSide);
detectParams.set_minMarkerLengthRatioOriginalImg((float) newParams.aruco3MinMarkerSideRatio);

photonDetector.setParams(detectParams);
}

super.setParams(newParams);
Expand Down

0 comments on commit e7eecbc

Please sign in to comment.