如何将 RGB 文件插入 .yml 文件以检索它以进行面部识别?如果我删除灰度转换选项,则会出现此错误
Traceback (most recent call last):
File "C:\Users\Yash Raj\Desktop\sir ye wala folder hai\trainer PIL.py", line 25, in <module>
recognizer.train(faces, np.array(ids))
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-1i5nllza\opencv_contrib\modules\face\src\lbph_faces.cpp:362: error: (-210:Unsupported format or combination of formats) Empty training data was given. You'll need more than one sample to learn a model. in function 'cv::face::LBPH::train ```