Ask Your Question
0

aborted core dumped :NEG current samples: 7250 terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 140) > this->size() (which is 11) Aborted (core dumped)7254

asked 2018-04-16 00:32:21 -0600

kapil goyal gravatar image

updated 2018-04-16 00:36:04 -0600

During cascade classifier training I used 2500 positive samples and 8000 negative samples. But in 4th stage of training I got this error of " aborted core dumped " and "std: out of range". Please help me to get rid off this problem. I used this command "opencv_traincascade -data data -vec positives2.vec -bg bg.txt -numPos 2500 -numNeg 7000 -numStages 10 -w 30 -h 30 -precalcValBufSize 1524 -precalcIdxBufSize 1524"

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-06-06 22:29:49 -0600

I had the same problem recently. My error message was: terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 140) > this->size() (which is 130)

But I found out that I was trying to load a corrupt image. Could you make sure this is not the case?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-16 00:32:21 -0600

Seen: 697 times

Last updated: Apr 16 '18