rateBySize
rateBySize(
roi,ratio):number
Rate body detection by size
Method that can be used as PoseParams.rateRoI parameter. Penalizes smaller detections to prefer bigger RoIs for tracking. Uses confidence score as the basis and lineraly downweights it according to RoI size relative to image height. RoIs having diameter bigger than half the image height are not penalized, smaller ones are rerated with down to 0.5 factor for zero size.
Parameters
Section titled “Parameters”Body detection
number
Image aspect ratio
Returns
Section titled “Returns”number
Priority rate of the detection