This commit is contained in:
louiscklaw
2025-01-31 22:57:47 +08:00
parent b1cd1d4662
commit b3cc8e8323
764 changed files with 722101 additions and 0 deletions

View File

@@ -0,0 +1 @@
opencv_createsamples -info positive/info.txt -vec vector/vector.vec -num 12 -w 24 -h 24

View File

@@ -0,0 +1 @@
createsamples.exe -info positive/info.txt -vec vector/vector.vec -num 100000 -w 24 -h 24

View File

@@ -0,0 +1,3 @@
haartraining.exe -data cascades -vec vector/vector.vec -bg negative/bg.txt -npos 12 -nneg 200 -nstages 15 -mem 1024 -mode ALL -w 24 -h 24
rem -nonsym

View File

@@ -0,0 +1 @@
haarconv.exe cascades myhaar.xml 24 24

View File

@@ -0,0 +1,19 @@
2
1
2
1 15 8 2 0 -1
5 15 4 2 0 2
haar_x2
-9.136580e-003 0 -1
7.015156e-001 -8.193341e-001
1
2
13 14 1 4 0 -1
13 16 1 2 0 2
haar_y2
-2.628337e-003 0 -1
6.790399e-001 -4.277396e-001
-1.402942e-001
-1
-1

View File

@@ -0,0 +1,26 @@
3
1
2
11 5 1 8 0 -1
11 9 1 4 0 2
haar_y2
1.281067e-003 0 -1
-7.921663e-001 5.302334e-001
1
2
12 14 3 4 0 -1
13 14 1 4 0 3
haar_x3
1.245665e-003 0 -1
1.363889e-001 -9.999980e-001
1
2
9 14 3 4 0 -1
10 14 1 4 0 3
haar_x3
1.469054e-003 0 -1
-8.458828e-001 5.431246e-001
-1.792606e-001
0
-1

View File

@@ -0,0 +1,12 @@
1
1
2
9 18 3 4 0 -1
10 18 1 4 0 3
haar_x3
3.766132e-004 0 -1
3.630137e-001 -9.999949e-001
3.630137e-001
9
-1

View File

@@ -0,0 +1,12 @@
1
1
2
3 1 3 21 0 -1
4 1 1 21 0 3
haar_x3
1.750404e-003 0 -1
3.724137e-001 -9.999946e-001
3.724137e-001
10
-1

View File

@@ -0,0 +1,26 @@
3
1
2
7 7 7 6 0 -1
7 9 7 2 0 3
haar_y3
2.247936e-002 0 -1
-5.611895e-001 7.430655e-001
1
2
7 8 15 6 0 -1
12 8 5 6 0 3
haar_x3
6.703517e-002 0 -1
-1.735132e-001 6.027132e-001
1
2
2 8 15 6 0 -1
7 8 5 6 0 3
haar_x3
-2.995142e-002 0 -1
5.300401e-001 -8.253077e-001
-2.557555e-001
1
-1

View File

@@ -0,0 +1,12 @@
1
1
2
3 0 3 8 0 -1
4 0 1 8 0 3
haar_x3
1.967057e-004 0 -1
3.724137e-001 -9.999951e-001
3.724137e-001
2
-1

View File

@@ -0,0 +1,26 @@
3
1
2
0 0 24 21 0 -1
6 0 12 21 0 2
haar_x4
-2.194693e-001 0 -1
7.023093e-001 -6.735003e-001
1
2
20 5 4 3 0 -1
20 5 2 3 0 2
haar_x2
5.175073e-003 0 -1
-1.458730e-001 4.011585e-001
1
2
10 16 4 4 0 -1
10 17 4 2 0 2
haar_y4
-2.783253e-004 0 -1
-1.000000e+000 3.825440e-001
-4.368293e-001
3
-1

View File

@@ -0,0 +1,26 @@
3
1
2
0 0 24 22 0 -1
6 0 12 22 0 2
haar_x4
-2.334674e-001 0 -1
6.597161e-001 -6.652623e-001
1
2
13 4 6 15 0 -1
13 9 6 5 0 3
haar_y3
-2.017974e-002 0 -1
-1.000000e+000 1.653698e-001
1
2
0 16 24 6 0 -1
0 18 24 2 0 3
haar_y3
3.238507e-003 0 -1
4.418581e-001 -1.000004e+000
-5.803439e-002
4
-1

View File

@@ -0,0 +1,26 @@
3
1
2
10 13 2 4 0 -1
10 14 2 2 0 2
haar_y4
2.745659e-003 0 -1
-5.572848e-001 7.229435e-001
1
2
11 17 6 4 0 -1
11 18 6 2 0 2
haar_y4
-2.625633e-003 0 -1
-7.602539e-001 2.507962e-001
1
2
7 17 6 4 0 -1
7 18 6 2 0 2
haar_y4
1.531167e-003 0 -1
-7.265800e-001 6.410740e-001
2.471598e-001
5
-1

View File

@@ -0,0 +1,12 @@
1
1
2
3 14 3 5 0 -1
4 14 1 5 0 3
haar_x3
3.295172e-005 0 -1
-1.000000e+000 3.630127e-001
3.630127e-001
6
-1

View File

@@ -0,0 +1,12 @@
1
1
2
4 9 10 10 0 -1
4 14 10 5 0 2
haar_y2
-4.910470e-003 0 -1
3.583618e-001 -9.999951e-001
3.583618e-001
7
-1

View File

@@ -0,0 +1,12 @@
1
1
2
1 9 18 10 0 -1
1 14 18 5 0 2
haar_y2
-4.782950e-002 0 -1
-1.000000e+000 5.669284e-001
5.669284e-001
8
-1

View File

@@ -0,0 +1,343 @@
<?xml version="1.0"?>
<opencv_storage>
<myhaar type_id="opencv-haar-classifier">
<size>
24 24</size>
<stages>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
1 15 8 2 -1.</_>
<_>
5 15 4 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-9.1365799307823181e-003</threshold>
<left_val>0.7015156149864197</left_val>
<right_val>-0.8193340897560120</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
13 14 1 4 -1.</_>
<_>
13 16 1 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.6283368933945894e-003</threshold>
<left_val>0.6790398955345154</left_val>
<right_val>-0.4277395904064179</right_val></_></_></trees>
<stage_threshold>-0.1402941942214966</stage_threshold>
<parent>-1</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
11 5 1 8 -1.</_>
<_>
11 9 1 4 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.2810670305043459e-003</threshold>
<left_val>-0.7921662926673889</left_val>
<right_val>0.5302333831787109</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
12 14 3 4 -1.</_>
<_>
13 14 1 4 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.2456650147214532e-003</threshold>
<left_val>0.1363888978958130</left_val>
<right_val>-0.9999979734420776</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
9 14 3 4 -1.</_>
<_>
10 14 1 4 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.4690540265291929e-003</threshold>
<left_val>-0.8458827733993530</left_val>
<right_val>0.5431246161460877</right_val></_></_></trees>
<stage_threshold>-0.1792605966329575</stage_threshold>
<parent>0</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
7 7 7 6 -1.</_>
<_>
7 9 7 2 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0224793609231710</threshold>
<left_val>-0.5611894726753235</left_val>
<right_val>0.7430654764175415</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
7 8 15 6 -1.</_>
<_>
12 8 5 6 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>0.0670351684093475</threshold>
<left_val>-0.1735132038593292</left_val>
<right_val>0.6027132272720337</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
2 8 15 6 -1.</_>
<_>
7 8 5 6 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.0299514196813107</threshold>
<left_val>0.5300400853157044</left_val>
<right_val>-0.8253077268600464</right_val></_></_></trees>
<stage_threshold>-0.2557555139064789</stage_threshold>
<parent>1</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
3 0 3 8 -1.</_>
<_>
4 0 1 8 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.9670570327434689e-004</threshold>
<left_val>0.3724136948585510</left_val>
<right_val>-0.9999951124191284</right_val></_></_></trees>
<stage_threshold>0.3724136948585510</stage_threshold>
<parent>2</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
0 0 24 21 -1.</_>
<_>
6 0 12 21 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.2194692939519882</threshold>
<left_val>0.7023093104362488</left_val>
<right_val>-0.6735002994537354</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
20 5 4 3 -1.</_>
<_>
20 5 2 3 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>5.1750731654465199e-003</threshold>
<left_val>-0.1458729952573776</left_val>
<right_val>0.4011585116386414</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
10 16 4 4 -1.</_>
<_>
10 17 4 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.7832528576254845e-004</threshold>
<left_val>-1.</left_val>
<right_val>0.3825440108776093</right_val></_></_></trees>
<stage_threshold>-0.4368292987346649</stage_threshold>
<parent>3</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
0 0 24 22 -1.</_>
<_>
6 0 12 22 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.2334674000740051</threshold>
<left_val>0.6597161293029785</left_val>
<right_val>-0.6652622818946838</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
13 4 6 15 -1.</_>
<_>
13 9 6 5 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.0201797392219305</threshold>
<left_val>-1.</left_val>
<right_val>0.1653697937726975</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
0 16 24 6 -1.</_>
<_>
0 18 24 2 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>3.2385070808231831e-003</threshold>
<left_val>0.4418581128120422</left_val>
<right_val>-1.0000040531158447</right_val></_></_></trees>
<stage_threshold>-0.0580343902111053</stage_threshold>
<parent>4</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
10 13 2 4 -1.</_>
<_>
10 14 2 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>2.7456590905785561e-003</threshold>
<left_val>-0.5572847723960877</left_val>
<right_val>0.7229434847831726</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
11 17 6 4 -1.</_>
<_>
11 18 6 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-2.6256330311298370e-003</threshold>
<left_val>-0.7602539062500000</left_val>
<right_val>0.2507961988449097</right_val></_></_>
<_>
<_>
<feature>
<rects>
<_>
7 17 6 4 -1.</_>
<_>
7 18 6 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.5311669558286667e-003</threshold>
<left_val>-0.7265800237655640</left_val>
<right_val>0.6410740017890930</right_val></_></_></trees>
<stage_threshold>0.2471597939729691</stage_threshold>
<parent>5</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
3 14 3 5 -1.</_>
<_>
4 14 1 5 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>3.2951720640994608e-005</threshold>
<left_val>-1.</left_val>
<right_val>0.3630127012729645</right_val></_></_></trees>
<stage_threshold>0.3630127012729645</stage_threshold>
<parent>6</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
4 9 10 10 -1.</_>
<_>
4 14 10 5 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-4.9104699864983559e-003</threshold>
<left_val>0.3583618104457855</left_val>
<right_val>-0.9999951124191284</right_val></_></_></trees>
<stage_threshold>0.3583618104457855</stage_threshold>
<parent>7</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
1 9 18 10 -1.</_>
<_>
1 14 18 5 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>-0.0478295013308525</threshold>
<left_val>-1.</left_val>
<right_val>0.5669283866882324</right_val></_></_></trees>
<stage_threshold>0.5669283866882324</stage_threshold>
<parent>8</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
9 18 3 4 -1.</_>
<_>
10 18 1 4 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>3.7661319947801530e-004</threshold>
<left_val>0.3630137145519257</left_val>
<right_val>-0.9999948740005493</right_val></_></_></trees>
<stage_threshold>0.3630137145519257</stage_threshold>
<parent>9</parent>
<next>-1</next></_>
<_>
<trees>
<_>
<_>
<feature>
<rects>
<_>
3 1 3 21 -1.</_>
<_>
4 1 1 21 3.</_></rects>
<tilted>0</tilted></feature>
<threshold>1.7504040151834488e-003</threshold>
<left_val>0.3724136948585510</left_val>
<right_val>-0.9999945759773254</right_val></_></_></trees>
<stage_threshold>0.3724136948585510</stage_threshold>
<parent>10</parent>
<next>-1</next></_></stages></myhaar>
</opencv_storage>

View File

@@ -0,0 +1,200 @@
neg-0001.jpg
neg-0003.jpg
neg-0004.jpg
neg-0005.jpg
neg-0006.jpg
neg-0007.jpg
neg-0009.jpg
neg-0010.jpg
neg-0011.jpg
neg-0012.jpg
neg-0013.jpg
neg-0015.jpg
neg-0016.jpg
neg-0019.jpg
neg-0022.jpg
neg-0024.jpg
neg-0025.jpg
neg-0026.jpg
neg-0027.jpg
neg-0028.jpg
neg-0029.jpg
neg-0030.jpg
neg-0031.jpg
neg-0034.jpg
neg-0035.jpg
neg-0036.jpg
neg-0037.jpg
neg-0038.jpg
neg-0039.jpg
neg-0040.jpg
neg-0041.jpg
neg-0042.jpg
neg-0044.jpg
neg-0045.jpg
neg-0046.jpg
neg-0047.jpg
neg-0048.jpg
neg-0049.jpg
neg-0050.jpg
neg-0051.jpg
neg-0052.jpg
neg-0053.jpg
neg-0054.jpg
neg-0055.jpg
neg-0056.jpg
neg-0057.jpg
neg-0058.jpg
neg-0059.jpg
neg-0060.jpg
neg-0061.jpg
neg-0062.jpg
neg-0064.jpg
neg-0065.jpg
neg-0066.jpg
neg-0067.jpg
neg-0068.jpg
neg-0069.jpg
neg-0070.jpg
neg-0071.jpg
neg-0072.jpg
neg-0073.jpg
neg-0074.jpg
neg-0075.jpg
neg-0076.jpg
neg-0077.jpg
neg-0078.jpg
neg-0080.jpg
neg-0081.jpg
neg-0083.jpg
neg-0084.jpg
neg-0085.jpg
neg-0086.jpg
neg-0087.jpg
neg-0092.jpg
neg-0093.jpg
neg-0094.jpg
neg-0095.jpg
neg-0096.jpg
neg-0097.jpg
neg-0098.jpg
neg-0099.jpg
neg-0100.jpg
neg-0101.jpg
neg-0102.jpg
neg-0103.jpg
neg-0104.jpg
neg-0105.jpg
neg-0106.jpg
neg-0107.jpg
neg-0108.jpg
neg-0109.jpg
neg-0110.jpg
neg-0111.jpg
neg-0112.jpg
neg-0113.jpg
neg-0114.jpg
neg-0115.jpg
neg-0116.jpg
neg-0118.jpg
neg-0119.jpg
UMD_001.jpg
UMD_002.jpg
UMD_003.jpg
UMD_004.jpg
UMD_005.jpg
UMD_006.jpg
UMD_007.jpg
UMD_008.jpg
UMD_009.jpg
UMD_010.jpg
UMD_011.jpg
UMD_012.jpg
UMD_013.jpg
UMD_014.jpg
UMD_015.jpg
UMD_016.jpg
UMD_017.jpg
UMD_018.jpg
UMD_019.jpg
UMD_020.jpg
UMD_021.jpg
UMD_022.jpg
UMD_023.jpg
UMD_024.jpg
UMD_025.jpg
UMD_026.jpg
UMD_027.jpg
UMD_028.jpg
UMD_029.jpg
UMD_030.jpg
UMD_031.jpg
UMD_032.jpg
UMD_033.jpg
UMD_034.jpg
UMD_035.jpg
UMD_036.jpg
UMD_037.jpg
UMD_038.jpg
UMD_039.jpg
UMD_040.jpg
UMD_041.jpg
UMD_042.jpg
UMD_043.jpg
UMD_044.jpg
UMD_045.jpg
UMD_046.jpg
UMD_047.jpg
UMD_048.jpg
UMD_049.jpg
UMD_050.jpg
UMD_051.jpg
UMD_052.jpg
UMD_053.jpg
UMD_054.jpg
UMD_055.jpg
UMD_056.jpg
UMD_057.jpg
UMD_058.jpg
UMD_059.jpg
UMD_060.jpg
UMD_061.jpg
UMD_062.jpg
UMD_063.jpg
UMD_064.jpg
UMD_065.jpg
UMD_066.jpg
UMD_067.jpg
UMD_068.jpg
UMD_069.jpg
UMD_070.jpg
UMD_071.jpg
UMD_072.jpg
UMD_073.jpg
UMD_074.jpg
UMD_075.jpg
UMD_076.jpg
UMD_077.jpg
UMD_078.jpg
UMD_079.jpg
UMD_080.jpg
UMD_081.jpg
UMD_082.jpg
UMD_083.jpg
UMD_084.jpg
UMD_085.jpg
UMD_086.jpg
UMD_087.jpg
UMD_088.jpg
UMD_089.jpg
UMD_090.jpg
UMD_091.jpg
UMD_092.jpg
UMD_093.jpg
UMD_094.jpg
UMD_095.jpg
UMD_096.jpg
UMD_097.jpg
UMD_098.jpg
UMD_099.jpg
UMD_100.jpg

View File

@@ -0,0 +1 @@
dir /b *.jpg >bg.txt

View File

@@ -0,0 +1,12 @@
rawdata/a1.bmp 6 153 172 137 185 42 83 101 180 186 70 95 79 292 99 113 138 423 48 111 109 471 148 152 159
rawdata/a10.bmp 3 91 81 168 167 256 73 155 219 400 69 187 228
rawdata/a11.bmp 2 121 158 198 203 338 216 161 147
rawdata/a12.bmp 3 95 67 138 193 237 178 174 172 458 76 148 189
rawdata/a2.bmp 2 141 214 213 153 421 266 179 144
rawdata/a3.bmp 3 132 71 132 142 304 168 67 103 380 109 163 143
rawdata/a4.bmp 3 61 120 109 183 196 53 69 124 397 199 110 113
rawdata/a5.bmp 4 76 164 158 255 241 63 82 174 320 112 94 135 483 62 115 179
rawdata/a6.bmp 1 312 91 148 144
rawdata/a7.bmp 2 175 116 99 132 326 40 107 122
rawdata/a8.bmp 5 106 202 95 86 196 221 72 69 301 221 68 78 380 191 64 80 487 223 70 95
rawdata/a9.bmp 7 96 98 75 90 132 30 61 89 179 32 78 78 308 67 69 108 474 24 55 95 517 137 107 128 372 237 153 163

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.