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,17 +101,16 @@ 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 -  
107 if (src.file.contains("Affine_0") && src.file.contains("Affine_1")) { 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 if (!rightEye.isNull() && !leftEye.isNull()) 107 if (!rightEye.isNull() && !leftEye.isNull())
111 ok = true; 108 ok = true;
112 } 109 }
113 110
114 if (!ok) { 111 if (!ok) {
  112 + QString r = pinEyes.at(0).toString();
  113 + QString l = pinEyes.at(1).toString();
115 if (!r.isNull() && !l.isNull() && src.file.contains(r) && src.file.contains(l)) 114 if (!r.isNull() && !l.isNull() && src.file.contains(r) && src.file.contains(l))
116 { 115 {
117 rightEye = src.file.get<QPointF>(r, QPointF()); 116 rightEye = src.file.get<QPointF>(r, QPointF());