Commit 067599a4bcbe9f810b2139eb440febf812dcf324
1 parent
c1a1921a
Added FTE condition for Stasm
Showing
2 changed files
with
2 additions
and
1 deletions
openbr/plugins/stasm4.cpp
| @@ -132,6 +132,7 @@ class StasmTransform : public UntrainableTransform | @@ -132,6 +132,7 @@ class StasmTransform : public UntrainableTransform | ||
| 132 | 132 | ||
| 133 | if (!foundFace) { | 133 | if (!foundFace) { |
| 134 | qWarning("No face found in %s.", qPrintable(src.file.fileName())); | 134 | qWarning("No face found in %s.", qPrintable(src.file.fileName())); |
| 135 | + dst.file.set("FTE",true); | ||
| 135 | } else { | 136 | } else { |
| 136 | for (int i = 0; i < nLandmarks; i++) { | 137 | for (int i = 0; i < nLandmarks; i++) { |
| 137 | QPointF point(landmarks[2 * i], landmarks[2 * i + 1]); | 138 | QPointF point(landmarks[2 * i], landmarks[2 * i + 1]); |
openbr/plugins/validate.cpp
| @@ -273,7 +273,7 @@ class RejectDistance : public Distance | @@ -273,7 +273,7 @@ class RejectDistance : public Distance | ||
| 273 | { | 273 | { |
| 274 | // We don't look at the query | 274 | // We don't look at the query |
| 275 | (void) b; | 275 | (void) b; |
| 276 | - | 276 | + |
| 277 | foreach (const QString &key, keys) | 277 | foreach (const QString &key, keys) |
| 278 | if ((rejectIfContains && a.file.contains(key)) || (!rejectIfContains && !a.file.contains(key))) | 278 | if ((rejectIfContains && a.file.contains(key)) || (!rejectIfContains && !a.file.contains(key))) |
| 279 | return -std::numeric_limits<float>::max(); | 279 | return -std::numeric_limits<float>::max(); |