Fix solvePNP draw bug (#172)

Removes duplicate members, try-catches streaming processing, and prevents drawing empty contours. The latter likely stems from some sort of use-after-free condition.
This commit is contained in:
Matt
2020-12-08 17:54:02 -08:00
committed by GitHub
parent 0c3aeb409b
commit a5437f7215
5 changed files with 19 additions and 17 deletions

View File

@@ -98,7 +98,6 @@ public class CirclePNPTest {
pipeline.getSettings().cornerDetectionUseConvexHulls = true;
pipeline.getSettings().cameraCalibration = getCoeffs(LIFECAM_480P_CAL_FILE);
pipeline.getSettings().targetModel = TargetModel.kCircularPowerCell7in;
pipeline.getSettings().cameraPitch = Rotation2d.fromDegrees(0.0);
pipeline.getSettings().outputShouldDraw = true;
pipeline.getSettings().outputShowMultipleTargets = false;
pipeline.getSettings().contourGroupingMode = ContourGroupingMode.Single;