From 28abcf7ce6ad4b6fcc89acca4d03f904d497a534 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 15 Oct 2019 10:42:44 +0200 Subject: [PATCH] t/psmv: Filter the blobs selected --- src/xrt/auxiliary/tracking/t_tracker_psmv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/tracking/t_tracker_psmv.cpp b/src/xrt/auxiliary/tracking/t_tracker_psmv.cpp index 960eafe2a..5a536d502 100644 --- a/src/xrt/auxiliary/tracking/t_tracker_psmv.cpp +++ b/src/xrt/auxiliary/tracking/t_tracker_psmv.cpp @@ -683,7 +683,8 @@ t_psmv_create(struct xrt_frame_context *xfctx, // clang-format off cv::SimpleBlobDetector::Params blob_params; blob_params.filterByArea = false; - blob_params.filterByConvexity = false; + blob_params.filterByConvexity = true; + blob_params.minConvexity = 0.8; blob_params.filterByInertia = false; blob_params.filterByColor = true; blob_params.blobColor = 255; // 0 or 255 - color comes from binarized image?