spyder报错
error: OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\core\src\matrix.cpp:250: error: (-215:Assertion failed) s >= 0 in function 'cv::setSize'
images =1
Labels =1
fh= open("D:/we/label.txt")
forlineinfh:
arr=line.split(";
img = cv2.imread(arrtol,0)
print(arr[e1)
images.append(img)
Labels.append(int(arr[1]))
model=cv2.face.LBPHFaceRecognizer create()
model.train(np.array(images),np.array(labels))
前面的代码没问题,就这一个代码出了问题,