1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.88k stars 1.33k forks source link

Could you update the output of the function. #270

Closed sunwoo76 closed 3 years ago

sunwoo76 commented 3 years ago

Hi! I really appreciate your work! but, It will be good If we can get a detection bounding box also.

Could you add the additional option to get the bounding box of the landmark?

Thanks!

1adrianb commented 3 years ago

Hi, sure I can add a flag for this and return the detected bounding boxes too. The same can be achieved by calling the face detector https://github.com/1adrianb/face-alignment/blob/2bcfcc6ea20d0104d48942737639827fd3d5e816/face_alignment/api.py#L126 before the face alignment and then passing the bounding boxes to it. But I agree sometimes its more convenient to return the bboxes in one go too.