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:
Christoph Haag 2023-03-13 01:28:37 +01:00 committed by Jakob Bornecrantz
parent 9dbfdf97ce
commit be093c4e06

View file

@ -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;