2016-01-18 15:09:19 -0600 | commented question | Error when launch opencv_traincascade : _cascadeDirName or _bgfileName or _vecFileName is NULL I processed again the opencv_createsamples with a small f (fianet.vec) and tried again the opencv_traincascade command which still fail with the same error. It seems caps don’t matter unfortunately. |
2016-01-18 11:02:37 -0600 | asked a question | Error when launch opencv_traincascade : _cascadeDirName or _bgfileName or _vecFileName is NULL Hello, I work with OpenCV on a mac book pro running on version 10.11.2 (15C50)- latest one. I successfully ran the first stage : opencv_createsamples -img FianetLogo.jpg –num 10 -vec Fianet.vec -maxxangle 0.6 -maxyangle 0 -maxzangle 0.3 -maxidev 100 -bgcolor 0 -bgthresh 0 -w 60 -h 20 => OK, vec produced. but the second stage is KO: opencv_traincascade -data data/ -vec fianet.vec –bg bg.txt -numStages 15 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 5 -numNeg 99 -w 60 -h 20 -mode BASIC -precalcValBufSize 1024 -precalcIdxBufSize 1024. OpenCV Error: Bad argument (_cascadeDirName or _bgfileName or _vecFileName is NULL) in train, file /Users/dhoop/Desktop/opencv/apps/traincascade/cascadeclassifier.cpp, line 145 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/dhoop/Desktop/opencv/apps/traincascade/cascadeclassifier.cpp:145: error: (-5) _cascadeDirName or _bgfileName or _vecFileName is NULL in function train Abort trap: 6
|