Skip to content

rateBySize

rateBySize(roi): number

Rate face detection by size

Method that can be used as FaceParams.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 height bigger than half the image height are not penalized, smaller ones are rerated with down to 0.5 factor for zero size.

FaceRect

Face detection

number

Priority rate of the detection