Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

opencv_traincascade throwing error "...lbpfeatures.cpp:17: error: (-215) _maxSampleCount > 0 in function init"

$
0
0
Hello everyone. An internet search suggested that this was a bug that was patched in the past so I have no idea what I'm doing wrong to recreate this bug. I've tried it in 2.4.11 and 3.0.0. Running on Linux Mint 17.2 64-bit. Here's the full command and output: user@linux ~/file/path $ opencv_traincascade -data ~/file/path/ -vec cards.vec -bg negatives.txt -numPos 500 -numNeg -500 -numStages 2 -w 53 -h 74 -featureType LBP OpenCV Error: Assertion failed (_maxSampleCount > 0) in init, file /home/user/Documents/opencv-3.0.0/apps/traincascade/lbpfeatures.cpp, line 17 terminate called after throwing an instance of 'cv::Exception' what(): /home/user/Documents/opencv-3.0.0/apps/traincascade/lbpfeatures.cpp:17: error: (-215) _maxSampleCount > 0 in function init Aborted I have 790 positive samples to use and 40,000 negative samples so I know I'm not running out. What could cause this? Is it possibly a bug in my negatives.txt? I've followed several different guides/tutorials from the internet, all to no avail.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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