Skip to content

Commit

Permalink
Run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 15, 2023
1 parent e0628af commit ab68283
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.opencv.core.Size;
import org.opencv.core.TermCriteria;
import org.opencv.imgproc.Imgproc;
import org.opencv.objdetect.DetectorParameters;
import org.opencv.objdetect.Objdetect;
import org.photonvision.vision.aruco.ArucoDetectionResult;
import org.photonvision.vision.aruco.PhotonArucoDetector;
Expand Down Expand Up @@ -93,7 +92,9 @@ protected List<ArucoDetectionResult> process(CVMat in) {
@Override
public void setParams(ArucoDetectionPipeParams newParams) {
if (this.params == null || !this.params.equals(newParams)) {
photonDetector.getDetector().setDictionary(Objdetect.getPredefinedDictionary(newParams.tagFamily));
photonDetector
.getDetector()
.setDictionary(Objdetect.getPredefinedDictionary(newParams.tagFamily));
var detectParams = photonDetector.getParams();

detectParams.set_adaptiveThreshWinSizeMin(newParams.threshMinSize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ protected CVPipelineResult process(Frame frame, ArucoPipelineSettings settings)

// If we want to debug the thresholding steps, draw the first step to the color image
if (settings.debugThreshold) {
drawThresholdFrame(
frame.processedImage.getMat(),
frame.colorImage.getMat(),
settings.threshWinSizes.getFirst(),
settings.threshConstant);
drawThresholdFrame(
frame.processedImage.getMat(),
frame.colorImage.getMat(),
settings.threshWinSizes.getFirst(),
settings.threshConstant);
}

targetList = new ArrayList<>();
Expand Down

0 comments on commit ab68283

Please sign in to comment.