Error “Train dataset for temp stage can not be filled.” while using traincascade tool of OpenCV

前端 未结 10 1109
灰色年华
灰色年华 2020-12-16 20:35

I\'m building the opencv_traincascade.exe tool from source code (OpenCV 2.4.0) using vs2010 on windows 7. I want to train a LBP classifier, so I\'m using opencv_traincascade

10条回答
  •  渐次进展
    2020-12-16 20:44

    opencv_traincascade is trying to read the Negative folder images in the current folder. Hence you have to transfer the opencv_traincascade.exe into negative/ images folder.

    For example:

    - opencv_traincascade.exe -data C:\Users\home\Documents\Face_Detection\HaarTrain\cascades -vec C:\Users\home\Documents\Face_Detection\HaarTrain\vector\vector.vec -bg bg.txt -numPos 130 -numNeg 500 -numStages 10 -precalcValBufSize 1024 -precalcIdxBufSize 1024
    

提交回复
热议问题