Commit 6298e6006cbfbd5a61d160e14fc183af83055c6e
1 parent
2b62de7b
Bug fix for detection sample extraction
Showing
1 changed file
with
1 additions
and
0 deletions
openbr/plugins/slidingwindow.cpp
| ... | ... | @@ -164,6 +164,7 @@ static TemplateList cropTrainingSamples(const TemplateList &data, const float as |
| 164 | 164 | continue; |
| 165 | 165 | |
| 166 | 166 | result += Template(tmpl.file, Mat(tmpl, posRect)); |
| 167 | + result.last().file.set("Label", QString("pos")); | |
| 167 | 168 | |
| 168 | 169 | // Add random negative samples |
| 169 | 170 | Mat m = tmpl.m(); | ... | ... |