mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/tracking: Fix psvr tracker OpenCV parameters
Fixes OpenCV exception on startup with Playstation Move controller: what(): OpenCV(4.7.0) /usr/src/debug/opencv/opencv-4.7.0/modules/features2d/src/blobdetector.cpp:93: error: (-5:Bad argument) 0<minArea<=maxArea in function 'validateParameters'
This commit is contained in:
parent
9dbfdf97ce
commit
be093c4e06
|
@ -2079,7 +2079,7 @@ t_psvr_create(struct xrt_frame_context *xfctx,
|
||||||
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?
|
||||||
blob_params.minArea = 0;
|
blob_params.minArea = 1;
|
||||||
blob_params.maxArea = 1000;
|
blob_params.maxArea = 1000;
|
||||||
blob_params.maxThreshold = 51; // using a wide threshold span slows things down bigtime
|
blob_params.maxThreshold = 51; // using a wide threshold span slows things down bigtime
|
||||||
blob_params.minThreshold = 50;
|
blob_params.minThreshold = 50;
|
||||||
|
|
Loading…
Reference in a new issue