You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying basic example provided in read.me i got below error. Please help me
(libfaceid_env) E:\assignment\training\Image_recognition\libfaceid-master>python TRY1.PY
Traceback (most recent call last):
File "TRY1.PY", line 10, in
face_encoder = FaceEncoder(model=FaceEncoderModels.DEFAULT, path=INPUT_DIR_MODEL_ENCODING, path_training=INPUT_DIR_MODEL_TRAINING, training=False)
File "E:\assignment\training\Image_recognition\libfaceid-master\libfaceid\encoder.py", line 48, in init
self._base = FaceEncoder_LBPH(path, path_training, training)
File "E:\assignment\training\Image_recognition\libfaceid-master\libfaceid\encoder.py", line 98, in init
self._clf.read(self._path_training + OUTPUT_LBPH_CLASSIFIER)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'
The text was updated successfully, but these errors were encountered:
Hi @richmondu ,
Thanks for sharing the great work. I am facing the same problem. I also tried downgrading OpenCV to 3.4.3.18 but I still faced the same error. Please help!
I have been trying basic example provided in read.me i got below error. Please help me
(libfaceid_env) E:\assignment\training\Image_recognition\libfaceid-master>python TRY1.PY
Traceback (most recent call last):
File "TRY1.PY", line 10, in
face_encoder = FaceEncoder(model=FaceEncoderModels.DEFAULT, path=INPUT_DIR_MODEL_ENCODING, path_training=INPUT_DIR_MODEL_TRAINING, training=False)
File "E:\assignment\training\Image_recognition\libfaceid-master\libfaceid\encoder.py", line 48, in init
self._base = FaceEncoder_LBPH(path, path_training, training)
File "E:\assignment\training\Image_recognition\libfaceid-master\libfaceid\encoder.py", line 98, in init
self._clf.read(self._path_training + OUTPUT_LBPH_CLASSIFIER)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'
The text was updated successfully, but these errors were encountered: