mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01: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:
1 parent
9dbfdf97ce
commit
be093c4e06
1 file changed
+1
-1
@@ -2079,7 +2079,7 @@ t_psvr_create(struct xrt_frame_context *xfctx,
|
||||
blob_params.filterByInertia = false;
|
||||
blob_params.filterByColor = true;
|
||||
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.maxThreshold = 51; // using a wide threshold span slows things down bigtime
|
||||
blob_params.minThreshold = 50;
|
||||
|
||||
Reference in new issue
Block a user