Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix extract faces grayscale #1276

Merged

Conversation

ProgramadorArtificial
Copy link
Contributor

What has been done

When activating to return the face in grayscale, an error occurs because it tries to convert from BGR to RGB, but the image is in grayscale.

image

How to test

Fixed to allow returning the face image in grayscale, to test you can use the following command:

faces = DeepFace.extract_faces(
    img_path = 'image.jpg',
    grayscale = True
)

@serengil
Copy link
Owner

LGTM

@serengil serengil merged commit b75e37c into serengil:master Jul 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants