Commit 64ba62941ea986245386a37a1aab2526a1014e40
Merge pull request #257 from biometrics/stasm_strings
Stasm strings
Showing
1 changed file
with
5 additions
and
4 deletions
openbr/plugins/stasm4.cpp
| @@ -101,16 +101,17 @@ class StasmTransform : public UntrainableTransform | @@ -101,16 +101,17 @@ class StasmTransform : public UntrainableTransform | ||
| 101 | QPointF rightEye; | 101 | QPointF rightEye; |
| 102 | QPointF leftEye; | 102 | QPointF leftEye; |
| 103 | 103 | ||
| 104 | + QString r = pinEyes.at(0).toString(); | ||
| 105 | + QString l = pinEyes.at(1).toString(); | ||
| 106 | + | ||
| 104 | if (src.file.contains("Affine_0") && src.file.contains("Affine_1")) { | 107 | if (src.file.contains("Affine_0") && src.file.contains("Affine_1")) { |
| 105 | - rightEye = pinEyes.at(0).toPointF(); | ||
| 106 | - leftEye = pinEyes.at(1).toPointF(); | 108 | + rightEye = QtUtils::toPoint(r); |
| 109 | + leftEye = QtUtils::toPoint(l); | ||
| 107 | if (!rightEye.isNull() && !leftEye.isNull()) | 110 | if (!rightEye.isNull() && !leftEye.isNull()) |
| 108 | ok = true; | 111 | ok = true; |
| 109 | } | 112 | } |
| 110 | 113 | ||
| 111 | if (!ok) { | 114 | if (!ok) { |
| 112 | - QString r = pinEyes.at(0).toString(); | ||
| 113 | - QString l = pinEyes.at(1).toString(); | ||
| 114 | if (!r.isNull() && !l.isNull() && src.file.contains(r) && src.file.contains(l)) | 115 | if (!r.isNull() && !l.isNull() && src.file.contains(r) && src.file.contains(l)) |
| 115 | { | 116 | { |
| 116 | rightEye = src.file.get<QPointF>(r, QPointF()); | 117 | rightEye = src.file.get<QPointF>(r, QPointF()); |