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

cv_face_FaceRecognizer_read erro #27

Open
FranciscoMaiungulo opened this issue Jan 31, 2022 · 0 comments
Open

cv_face_FaceRecognizer_read erro #27

FranciscoMaiungulo opened this issue Jan 31, 2022 · 0 comments

Comments

@FranciscoMaiungulo
Copy link

FranciscoMaiungulo commented Jan 31, 2022

Hey guys.
I'm here with this bug in my code and I can't even find a solution for it.
I've already used "load" instead of "read", but still an error appears. When I change the opencv version, I can't create the training "yml" file anymore.
Below is my code with the "yml" file already created.

from PIL import Image
import cv2
import numpy as np
import os

lbph_face_classifier = cv2.face.LBPHFaceRecognizer_create()
lbph_face_classifier.read('/train/lbph_classifier.yml')
imagem_teste = ('C:/Users/MD Francisco/Desktop/Expert/dlib/Reconhecimento/yalefaces/test/subject10.sad.gif')
imagem = Image.open(imagem_teste).convert('L')
imagem_np = np.array('uint8')
print(imagem_np)

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

No branches or pull requests

1 participant