I am trying to find the correct lowerbounds/upperbounds threshold values of a ball, so that I can use it in the OpenCV inRange
function.
I've read Choosing correct HSV values for OpenCV thresholding with InRangeS, but I still dont understand how to do this in my case:
inRange function:
inRange(frmHsv, Scalar(lowerH, lowerS, lowerV), Scalar(upperH, upperS, upperV), rangeRes);
OpenCV HSV ranges:
H: 0 - 180
S: 0 - 255
V: 0 - 255
How can I find lowerH
, lowerS
, lowerV
, upperH
, upperS
, upperV
?