diff --git a/openbr/plugins/stasm4.cpp b/openbr/plugins/stasm4.cpp index acb7911..0d5cea2 100644 --- a/openbr/plugins/stasm4.cpp +++ b/openbr/plugins/stasm4.cpp @@ -132,6 +132,7 @@ class StasmTransform : public UntrainableTransform if (!foundFace) { qWarning("No face found in %s.", qPrintable(src.file.fileName())); + dst.file.set("FTE",true); } else { for (int i = 0; i < nLandmarks; i++) { QPointF point(landmarks[2 * i], landmarks[2 * i + 1]); diff --git a/openbr/plugins/validate.cpp b/openbr/plugins/validate.cpp index 233268c..43aa15e 100644 --- a/openbr/plugins/validate.cpp +++ b/openbr/plugins/validate.cpp @@ -273,7 +273,7 @@ class RejectDistance : public Distance { // We don't look at the query (void) b; - + foreach (const QString &key, keys) if ((rejectIfContains && a.file.contains(key)) || (!rejectIfContains && !a.file.contains(key))) return -std::numeric_limits::max();