From ab68283b046210cd3516fb479a3e36e2d7bf8356 Mon Sep 17 00:00:00 2001 From: Matthew Morley Date: Sun, 15 Oct 2023 13:41:33 -0400 Subject: [PATCH] Run lint --- .../vision/pipe/impl/ArucoDetectionPipe.java | 5 +++-- .../photonvision/vision/pipeline/ArucoPipeline.java | 10 +++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/photon-core/src/main/java/org/photonvision/vision/pipe/impl/ArucoDetectionPipe.java b/photon-core/src/main/java/org/photonvision/vision/pipe/impl/ArucoDetectionPipe.java index 7e88a70d70..3d97e506ce 100644 --- a/photon-core/src/main/java/org/photonvision/vision/pipe/impl/ArucoDetectionPipe.java +++ b/photon-core/src/main/java/org/photonvision/vision/pipe/impl/ArucoDetectionPipe.java @@ -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; @@ -93,7 +92,9 @@ protected List 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); diff --git a/photon-core/src/main/java/org/photonvision/vision/pipeline/ArucoPipeline.java b/photon-core/src/main/java/org/photonvision/vision/pipeline/ArucoPipeline.java index 2e6f8eac69..d05ad15638 100644 --- a/photon-core/src/main/java/org/photonvision/vision/pipeline/ArucoPipeline.java +++ b/photon-core/src/main/java/org/photonvision/vision/pipeline/ArucoPipeline.java @@ -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<>();