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
13.92k stars 2.16k forks source link

Can image alignment be performed before performing face detection #1371

Closed TheHonestBob closed 1 week ago

TheHonestBob commented 1 week ago

Before You Report a Bug, Please Confirm You Have Done The Following...

DeepFace's version

v0.0.93

Python version

3.9.19

Operating System

ubuntu 22

Dependencies

When my original image is rotated 90 degrees, if it is not aligned beforehand, it will seriously affect the effectiveness of the face detection model. Therefore, can we align the original image first and then rotate it

Reproducible example

Relevant Log Output

No response

Expected Result

No response

What happened instead?

No response

Additional Info

No response

serengil commented 1 week ago

face detectors fail to find the eye coordinates for 90 degree aligned images. nothing to do unfortunately.

on the other hand, we are performing alignment first and detection second for images already.