Ask Your Question

table234's profile - activity

2018-08-19 07:47:15 -0600 received badge  Famous Question (source)
2017-10-21 23:20:23 -0600 received badge  Notable Question (source)
2017-05-20 10:41:38 -0600 received badge  Popular Question (source)
2016-01-21 12:54:27 -0600 commented answer traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Mr.Puttemans Thank you for your advice. However, I don't know how to make requirements harsher.(I do not know "requirements harsher".) Please, show me examples of requirements harsher or references. Sorry.

2016-01-21 10:03:02 -0600 received badge  Editor (source)
2016-01-21 09:58:54 -0600 asked a question traincascade's error (Required leaf false alarm rate achieved. Branch training terminated.)

Hello, everyone.

I wamt to create a LBP face detector with traincascade. However, traincascade outputs a following message and stop training. "Required leaf false alarm rate achieved. Branch training terminated."

This is my first training parameters. opencv_traincascade -numPos 7500 -numNeg 3000 -featureType LBP -mode ALL -numStages 12 -w 48 -h 48 However, Training stops stage 9.

I tried to set various parameters. For example, -maxFalseAlarmRate 0.4 or 0.3, -w 24 -w 24, -minHitRate 0.7, -numStage 8 and -numpos 6000 ,but traincascade outputs same error message.

I prepare about 8,500 positive samples and 4,000 negative samples, so I think number of samples is enough. This is a example of positive samples. C:\fakepath\sampling_succeed.png This is a example of negative samples. C:\fakepath\division_img00010.jpg

I have no idea to finish training. Please advice me.

This is reported accuracy at stage 7,8 and stopped 9

===== TRAINING 7-stage =====
<BEGIN
POS count : consumed   7500 : 7659
NEG count : acceptanceRatio    3000 : 0.00111988
Precalculation time: 4.987
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|        1|        1|
+----+---------+---------+
|   2|        1|        1|
+----+---------+---------+
|   3| 0.998133|    0.633|
+----+---------+---------+
|   4|   0.9968|     0.54|
+----+---------+---------+
|   5| 0.995867| 0.298333|
+----+---------+---------+
END>
Training until now has taken 0 days 1 hours 34 minutes 5 seconds.

===== TRAINING 8-stage =====
<BEGIN
POS count : consumed   7500 : 7690
NEG count : acceptanceRatio    3000 : 0.000370415
Precalculation time: 5.016
+----+---------+---------+
|  N |    HR   |    FA   |
+----+---------+---------+
|   1|        1|        1|
+----+---------+---------+
|   2|        1|        1|
+----+---------+---------+
|   3| 0.997467| 0.585667|
+----+---------+---------+
|   4|   0.9952| 0.478333|
+----+---------+---------+
END>
Training until now has taken 0 days 1 hours 53 minutes 53 seconds.

===== TRAINING 9-stage =====
<BEGIN
POS count : consumed   7500 : 7726
NEG count : acceptanceRatio    3000 : 0.000193578
Required leaf false alarm rate achieved. Branch training terminated.
2015-12-10 04:05:30 -0600 asked a question Createsamples can't open images

Hello everyone. I'm trying to run createsamples to make a Face Detection on Command Prompt as below command.

C:\EX9>opencv_createsamples.exe -vec Front_8595.vec -num 8595 -info Front_OK.txt -w 48 -h 48 -mode ALL

However, createsamples can't run and output a below error message.

Unable to open image: POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif OpenCV Error: Unknown error code -9 () in unknown function, file ......\src\cxcore\cxarray.cpp, line 2994

"POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif" is a relative filepath to a sample image I ran createsamples with another image-set on same setting and it's succeed. I tried converting tif to jpg and renaming short filename but I can't run createsamples.

I use the text to get filepaths and ranges of faces as below. POSE\000001\MY_000001_IEU+00_PD+00_EN_A0_D0_T0_BB_M0_R1_S0.tif 1 141 288 217 288

Please give an advice.