mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
avalability of nose and mouth check
This commit is contained in:
parent
0ec185721e
commit
532004e7ee
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user