Fix extract faces grayscale

This commit is contained in:
Programador Artificial 2024-07-13 16:42:03 -03:00
parent 1fcd8c6594
commit 45c9f723e0

View File

@ -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,