mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +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)
|
h = int(current_region.h)
|
||||||
|
|
||||||
resp_obj = {
|
resp_obj = {
|
||||||
"face": current_img[:, :, ::-1],
|
"face": current_img if grayscale else current_img[:, :, ::-1],
|
||||||
"facial_area": {
|
"facial_area": {
|
||||||
"x": x,
|
"x": x,
|
||||||
"y": y,
|
"y": y,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user