Haar Training: error (-215)_img.row * _img.cols == vecSize in function
问题 I am trying to train a Haar Cascade to detect hands. I have a vec file of size 1000. I have 40 positive images and 600 negative images. I have tried both dropping my positive images and negative images. When I run the following command I receive the following error: opencv_traincascade -data classifier -data classifier -vec samples.vec -bg negatives.txt -numstages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 1000\ -numNeg 600 -w 80 -h 40 -mode ALL -precalcValBufSize 1024\