Skip to content

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.

BodyCircle

Body detection

number

Image aspect ratio

number

Priority rate of the detection