mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
Set the box corner mat from the mat in settings
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user