这是报错信息:
D:\python\python.exe D:/face22/动态人脸识别.py
Traceback (most recent call last):
File "D:\face22\动态人脸识别.py", line 125, in
dynamic_recognizer_face(face_recognizer,names)
File "D:\face22\动态人脸识别.py", line 97, in dynamic_recognizer_face
y_, confidence = face_recognizer.predict(face) #人脸辨识
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\core\src\lda.cpp:183: error: (-5:Bad argument) Wrong shapes for given matrices. Was size(src) = (1,16384), size(W) = (4096,10). in function 'cv::LDA::subspaceProject'
[ WARN:0@5.432] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
Process finished with exit code 1
求解答!!
error: (-5:Bad argument) Wrong shapes for given matrices.