diff --git a/chameleon-server/src/main/java/com/chameleonvision/vision/pipeline/pipes/DrawSolvePNPPipe.java b/chameleon-server/src/main/java/com/chameleonvision/vision/pipeline/pipes/DrawSolvePNPPipe.java index 563553f2e..2dcf6d115 100644 --- a/chameleon-server/src/main/java/com/chameleonvision/vision/pipeline/pipes/DrawSolvePNPPipe.java +++ b/chameleon-server/src/main/java/com/chameleonvision/vision/pipeline/pipes/DrawSolvePNPPipe.java @@ -23,7 +23,8 @@ public class DrawSolvePNPPipe implements Pipe run(Pair> targets) { long processStartNanos = System.nanoTime(); var image = targets.getLeft(); for(var it : targets.getRight()) { - MatOfPoint2f imagePoints = new MatOfPoint2f(); + try { Calib3d.projectPoints(boxCornerMat, it.rVector, it.tVector, this.cameraMatrix, this.distortionCoefficients, imagePoints, new Mat() , 0); } catch (Exception e) {