Set the box corner mat from the mat in settings

This commit is contained in:
Matt
2020-01-26 21:55:40 -08:00
parent 37eec14ea2
commit 20209059b1
3 changed files with 25 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ public class StandardCVPipeline extends CVPipeline<StandardCVPipelineResult, Sta
solvePNPPipe.setConfig(settings, cameraCapture.getCurrentCalibrationData(), cameraCapture.getProperties().getTilt());
drawSolvePNPPipe.setConfig(cameraCapture.getCurrentCalibrationData());
drawSolvePNPPipe.setTargetBox(settings.targetCornerMat);
}

View File

@@ -78,6 +78,10 @@ public class DrawSolvePNPPipe implements Pipe<Pair<Mat, List<StandardCVPipeline.
));
}
public void setTargetBox(MatOfPoint3f cornerMat) {
this.boxCornerMat = cornerMat;
}
private Mat cameraMatrix = new Mat();
private MatOfDouble distortionCoefficients = new MatOfDouble();