The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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'

authored by

Christoph Haag and committed by
Jakob Bornecrantz
be093c4e 9dbfdf97

+1 -1
+1 -1
src/xrt/auxiliary/tracking/t_tracker_psvr.cpp
··· 2079 2079 blob_params.filterByInertia = false; 2080 2080 blob_params.filterByColor = true; 2081 2081 blob_params.blobColor = 255; // 0 or 255 - color comes from binarized image? 2082 - blob_params.minArea = 0; 2082 + blob_params.minArea = 1; 2083 2083 blob_params.maxArea = 1000; 2084 2084 blob_params.maxThreshold = 51; // using a wide threshold span slows things down bigtime 2085 2085 blob_params.minThreshold = 50;