OpenCV错误:参数错误(执行LDA至少需要两个类。原因:只提供了一个类!)

时间:2018-07-11 22:14:25

标签: python opencv

我正在使用树莓及其本地操作系统,进行一些面部识别测试, 我有一个问题,是下一个:

OpenCV Error: Bad argument (At least two classes are needed to perform a LDA. Reason: Only one class was given!) in lda, file /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/contrib/src/lda.cpp, line 1010
Traceback (most recent call last):
  File "reconocimiento.py", line 20, in <module>
    model.train(images,lables)
cv2.error: /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/contrib/src/lda.cpp:1010: error: (-5) At least two classes are needed to perform a LDA. Reason: Only one class was given! in function lda

感谢您的帮助,希望我能找到答案:(

0 个答案:

没有答案