serengil / retinaface

RetinaFace: Deep Face Detection Library for Python
https://www.youtube.com/watch?v=Wm1DucuQk70&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=3
MIT License
1.22k stars 154 forks source link

[FEATURE]: Return face detection results along with alignment results #108

Closed neeraj-kumar closed 2 months ago

neeraj-kumar commented 2 months ago

Description

Right now, if a user wants both the face detection results (face box + location of fiducials) and alignment results, they have to call detect_faces() and extract_faces(), but the latter calls the former, so we are doing the work twice. Can there be either a different function, or a modified version of extract_faces() that returns the face detection results as well as extracted aligned faces?

Additional Info

No response

serengil commented 2 months ago

If you call detect face, then you can extract facial area by yourself. TBH, a combined function is not necessary.