Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Cascade Training Error OpenCV 2.4.13 error @ stage 4! Train dataset for temp stage can not be filled

$
0
0
I've built opencv 2.4.13 for ubuntu 16.04 x64 from source zip file downloaded from [opencv](http://opencv.org) website. I prepared the required libraries and packages according [OpenCV Installation in Linux](http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html#required-packages), then compiled the release version by : cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local then: make -j4 and then: make install The installation was successful and I could use "opencv_createsamples" to generate the desired vector file. The problem is the "opencv_traincascade". Let me show you some info: mohammad@ThinkPad-Xenial:~$ ls /home/mohammad/Documents -all total 3219104 drwxr-xr-x 10 mohammad mohammad 4096 Aug 23 12:11 . drwxr-xr-x 26 mohammad mohammad 4096 Aug 23 10:30 .. -rw-rw-r-- 1 mohammad mohammad 2482 Aug 23 11:41 bg.txt drwxrwxrwx 2 mohammad mohammad 4096 Aug 22 21:27 mohammadspic drwxrwxrwx 2 mohammad mohammad 20480 Aug 22 15:01 negative_images -rw-rw-r-- 1 mohammad mohammad 10389 Aug 23 10:32 pos.vec -rw-rw-r-- 1 mohammad mohammad 341 Aug 23 10:30 ps.txt drwxrwxr-x 2 mohammad mohammad 4096 Aug 23 11:44 xm Here is my training command, but if look at the end of the training procedure, you will see a [similar error](http://answers.opencv.org/question/16868/error-in-train-casacde/). But this time, the negative images description file is correct and "opencv_traincascade" works properly until stage 4!!!! mohammad@ThinkPad-Xenial:~$ opencv_traincascade -data /home/mohammad/Documents/xm -vec /home/mohammad/Documents/pos.vec -bg /home/mohammad/Documents/bg.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 9 -numNeg 50 -w 24 -h 24 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024 PARAMETERS: cascadeDirName: /home/mohammad/Documents/xm vecFileName: /home/mohammad/Documents/pos.vec bgFileName: /home/mohammad/Documents/bg.txt numPos: 9 numNeg: 50 numStages: 20 precalcValBufSize[Mb] : 1024 precalcIdxBufSize[Mb] : 1024 acceptanceRatioBreakValue : -1 stageType: BOOST featureType: HAAR sampleWidth: 24 sampleHeight: 24 boostType: GAB minHitRate: 0.999 maxFalseAlarmRate: 0.5 weightTrimRate: 0.95 maxDepth: 1 maxWeakCount: 100 mode: ALL Number of unique features given windowSize [24,24] : 261600 ===== TRAINING 0-stage ===== Training until now has taken 0 days 0 hours 0 minutes 1 seconds. ===== TRAINING 1-stage ===== Training until now has taken 0 days 0 hours 0 minutes 2 seconds. ===== TRAINING 2-stage ===== Training until now has taken 0 days 0 hours 0 minutes 3 seconds. ===== TRAINING 3-stage ===== Training until now has taken 0 days 0 hours 0 minutes 4 seconds. ===== TRAINING 4-stage =====

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>