yulequan / face-alignment-in-3000fps

a c++ implementation of face alignment in 3000fps
Other
377 stars 234 forks source link

scaling the bbox #12

Closed alfredtofu closed 8 years ago

alfredtofu commented 8 years ago

scale bbox code

I cannot understand why you do this. If you want to enlarge the bbox, It should be center_x - width * scale / 2 instead of x * scale.

yulequan commented 8 years ago

We narrow images when we use opencv face detector. So we should get origin bbx (enlarge opencv return bbx). Please note the origin of image coordinate does not lie on image center.

alfredtofu commented 8 years ago

Yep. You are right since you first resize the image

BTW, I still have some questions:

  1. How to set the range of local coordinate?
  2. How to set the number of features?