Commit da1dd36e2ee2652e3d7608fb658207fba3c371b7
Merge branch 'master' of https://github.com/biometrics/openbr
Showing
1 changed file
with
8 additions
and
1 deletions
openbr/core/core.cpp
| @@ -86,8 +86,15 @@ struct AlgorithmCore | @@ -86,8 +86,15 @@ struct AlgorithmCore | ||
| 86 | qDebug("Projecting Enrollment"); | 86 | qDebug("Projecting Enrollment"); |
| 87 | trainingWrapper->projectUpdate(data,data); | 87 | trainingWrapper->projectUpdate(data,data); |
| 88 | 88 | ||
| 89 | + TemplateList distanceData; | ||
| 90 | + for (int i=0; i<data.size(); i++) | ||
| 91 | + if (!data[i].file.fte && !data[i].file.getBool("FTE")) | ||
| 92 | + distanceData.append(data[i]); | ||
| 93 | + | ||
| 94 | + data.clear(); | ||
| 95 | + | ||
| 89 | qDebug("Training Comparison"); | 96 | qDebug("Training Comparison"); |
| 90 | - distance->train(data); | 97 | + distance->train(distanceData); |
| 91 | } | 98 | } |
| 92 | 99 | ||
| 93 | if (!model.isEmpty()) { | 100 | if (!model.isEmpty()) { |