serengil / deepface

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
https://www.youtube.com/watch?v=WnUVYQP4h44&list=PLsS_1RYmYQQFdWqxQggXHynP1rqaYXv_E&index=1
MIT License
14.31k stars 2.2k forks source link

detect multiple faces? #305

Closed amar-enkhbat closed 3 years ago

amar-enkhbat commented 3 years ago

Hello @serengil. Thanks for the great repository. The deepface.analyze() detects only one face when multiple faces are present in an image. Since deepface seems to use backends that can already detect multiple faces anyway can you enhance so that the 4 action can be predicted in all faces?

Best regards.

shafichoudhary commented 3 years ago

Yes , I already implemented the multiple faces finding by rewriting some of the method such as find, represent , preprocess, detect_face , wrappers backend.

On Tue, Aug 3, 2021 at 11:07 AM Amar Enkhbat @.***> wrote:

Hello @serengil https://github.com/serengil. Thanks for the great repository. The deepface.analyze() detects only one face when multiple faces are present in an image. Since deepface seems to use backends that can already detect multiple faces anyway can you enhance so that the 4 action can be predicted in all faces?

Best regards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/serengil/deepface/issues/305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUNUHYQTZZBA4J27YHLLEA3T26PV5ANCNFSM5BOJPCEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

--

Thanks and Regards, Riyadh, Saudi Arabia Mobile : +966 591725937 Shafiullah S Choudhary

amar-enkhbat commented 3 years ago

I tried both PyPi and this repo version of DeepFace.analyze but it seems to run analysis on one face.

serengil commented 3 years ago

unfortunately, handling multiple faces is out-of-scope of this project.