Skip to content

Commit

Permalink
avalability of nose and mouth check
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Oct 5, 2024
1 parent 0ec1857 commit 532004e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deepface/modules/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ def extract_faces(
}

# optional nose, mouth_left and mouth_right fields are coming just for retinaface
if current_region.nose:
if current_region.nose is not None:
facial_area["nose"] = current_region.nose
if current_region.mouth_left:
if current_region.mouth_left is not None:
facial_area["mouth_left"] = current_region.mouth_left
if current_region.mouth_right:
if current_region.mouth_right is not None:
facial_area["mouth_right"] = current_region.mouth_right

resp_obj = {
Expand Down

0 comments on commit 532004e

Please sign in to comment.