From 1aac80c63a5a75ff5dce20ea400055057d362959 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 5 Jan 2020 22:29:41 -0800 Subject: [PATCH] Update box for 2020 --- .../pipeline/pipes/DrawSolvePNPPipe.java | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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) {