Traincascade error.. [closed]

asked 2013-11-23 12:39:35 -0600

ioanna gravatar image

I run the command opencv_traincascade -data data/cascade -vec data/vector.vec -bg neg.txt -numPos 2200 -numNeg 1000 -numStages 25 –featureType LBP -mem 2000 -mode ALL -w 25 -h 15 and returned the follow:

PARAMETERS:
cascadeDirName: data/cascade
vecFileName: data/vector.vec
bgFileName: neg.txt
numPos: 2200
numNeg: 1000
numStages: 25
precalcValBufSize[Mb] : 256
precalcIdxBufSize[Mb] : 256
stageType: BOOST
featureType: HAAR
sampleWidth: 25
sampleHeight: 15
boostType: GAB
minHitRate: 0.995
maxFalseAlarmRate: 0.5
weightTrimRate: 0.95
maxDepth: 1
maxWeakCount: 100
mode: ALL

===== TRAINING 0-stage =====
<BEGIN
POS count : consumed   2200 : 2200
NEG count : acceptanceRatio    1000 : 1
Precalculation time: 18
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|        1|        1|
+----+---------+---------+
|   2| 0.997727|    0.567|
+----+---------+---------+
|   3| 0.995455|    0.496|
+----+---------+---------+
END>

===== TRAINING 1-stage =====
<BEGIN
OpenCV Error: Bad argument (Can not get new positive sample. The most possible reason is insufficient count of samples in given vec-file.
) in get, file /home/mcn/opencv-2.4.5/apps/traincascade/imagestorage.cpp, line 159
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/mcn/opencv-2.4.5/apps/traincascade/imagestorage.cpp:159: error: (-5) Can not get new positive sample. The most possible reason is insufficient count of samples in given vec-file.
 in function get

Aborted

I see and that http://code.opencv.org/issues/1834 ... So what can I do?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by StevenPuttemans
close date 2013-11-23 13:52:49.067489

Comments

@ioanna I have asked you several times to use the edit button of your questions and to not open new ones every single step of the way. Go to this previous topic, which was also a traincascade problem of you and edit your question to get new help. This one gets closed, all new ones will get deleted...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-11-23 13:51:08 -0600 )edit