mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
Fix extract faces grayscale
This commit is contained in:
parent
1fcd8c6594
commit
45c9f723e0
@ -125,7 +125,7 @@ def extract_faces(
|
||||
h = int(current_region.h)
|
||||
|
||||
resp_obj = {
|
||||
"face": current_img[:, :, ::-1],
|
||||
"face": current_img if grayscale else current_img[:, :, ::-1],
|
||||
"facial_area": {
|
||||
"x": x,
|
||||
"y": y,
|
||||
|
Loading…
x
Reference in New Issue
Block a user