-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Error loading images or encoding faces: Unsupported image type, must be 8bit gray or RGB image. #1612
Comments
import face_recognition video_capture = cv2.VideoCapture(0) Load a sample picture and learn how to recognize it.obama_image = face_recognition.load_image_file('picther\elonmask.jpg') Load a second sample picture and learn how to recognize it.biden_image = face_recognition.load_image_file("picther/mohamm.jpg") Create arrays of known face encodings and their namesknown_face_encodings = [ Initialize some variablesface_locations = [] while True:
Draw a label with a name below the face
Release handle to the webcamvideo_capture.release() |
Traceback (most recent call last): |
is there a solution to this error message that appears |
I think downgrading numpy is what got rid of that for me. |
Downgrading Numpy version did the trick for me. I used:
|
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.
What I Did
The text was updated successfully, but these errors were encountered: