错误:((opencv4.2.0)cv2.error: OpenCV(4.2.0)(-215:Assertion failed)!samples.empty() in function ‘train’) SVM训练 代码:result = svm.train(trainningMat, cv2.ml.ROW_SAMPLE, Labels) error: 使用SVM进行训练时出现这种错误,看一下代码里的路径是否准确,目标文件夹下的数据是否为空。