Update SolvePNPPipe.java

This commit is contained in:
Matt
2020-02-22 12:56:23 -08:00
parent ad8c0f0105
commit 8707596814

View File

@@ -168,7 +168,7 @@ public class SolvePNPPipe implements Pipe<Pair<List<StandardCVPipeline.TrackedTa
// Can be tuned to allow/disallow hulls
// Approx is the number of vertices
// RamerDouglasPeucker algorithm
Imgproc.approxPolyDP(target.rawContour, polyOutput, 0.04 * peri, true);
Imgproc.approxPolyDP(target.rawContour, polyOutput, 0.02 * peri, true);
var area = Imgproc.moments(polyOutput);