mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
t/psmv: Filter the blobs selected
This commit is contained in:
parent
c713ca61f2
commit
28abcf7ce6
|
@ -683,7 +683,8 @@ t_psmv_create(struct xrt_frame_context *xfctx,
|
||||||
// clang-format off
|
// clang-format off
|
||||||
cv::SimpleBlobDetector::Params blob_params;
|
cv::SimpleBlobDetector::Params blob_params;
|
||||||
blob_params.filterByArea = false;
|
blob_params.filterByArea = false;
|
||||||
blob_params.filterByConvexity = false;
|
blob_params.filterByConvexity = true;
|
||||||
|
blob_params.minConvexity = 0.8;
|
||||||
blob_params.filterByInertia = false;
|
blob_params.filterByInertia = false;
|
||||||
blob_params.filterByColor = true;
|
blob_params.filterByColor = true;
|
||||||
blob_params.blobColor = 255; // 0 or 255 - color comes from binarized image?
|
blob_params.blobColor = 255; // 0 or 255 - color comes from binarized image?
|
||||||
|
|
Loading…
Reference in a new issue