OpenCV Error: Unspecified error (File can't be opened for writing!) in load, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/contrib/src/facerec.cpp, line 325
Traceback (most recent call last):
File "face_recog_eigen.py", line 76, in
recognizer.load_trained_data()
File "face_recog_eigen.py", line 24, in load_trained_data
self.model.load('eigen_trained_data.xml')
cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/contrib/src/facerec.cpp:325: error: (-2) File can't be opened for writing! in function load
OpenCV Error: Unspecified error (File can't be opened for writing!) in load, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/contrib/src/facerec.cpp, line 325 Traceback (most recent call last): File "face_recog_eigen.py", line 76, in
recognizer.load_trained_data()
File "face_recog_eigen.py", line 24, in load_trained_data
self.model.load('eigen_trained_data.xml')
cv2.error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/contrib/src/facerec.cpp:325: error: (-2) File can't be opened for writing! in function load
why is this error help me out to sort it out