Commit 12ed1cb782fdbb02ad10b4b3303048c9385334e8

Authored by Josh Klontz
1 parent 4fa20c4f

Revert "Ugh"

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