Commit e2b9148e9b401c9450e63c83279ef422a8069729

Authored by Scott Klum
1 parent 37f46fbf

Stasm talks too much, using verbose now

openbr/plugins/crop.cpp
@@ -62,7 +62,7 @@ class ROITransform : public UntrainableTransform @@ -62,7 +62,7 @@ class ROITransform : public UntrainableTransform
62 { 62 {
63 if (src.file.rects().empty()) { 63 if (src.file.rects().empty()) {
64 dst = src; 64 dst = src;
65 - qWarning("No rects present in file."); 65 + if (Globals->verbose) qWarning("No rects present in file.");
66 } 66 }
67 else 67 else
68 foreach (const QRectF &rect, src.file.rects()) 68 foreach (const QRectF &rect, src.file.rects())
openbr/plugins/landmarks.cpp
@@ -83,7 +83,7 @@ class ProcrustesTransform : public Transform @@ -83,7 +83,7 @@ class ProcrustesTransform : public Transform
83 83
84 if (points.empty() || rects.empty()) { 84 if (points.empty() || rects.empty()) {
85 dst = src; 85 dst = src;
86 - qWarning("Procrustes alignment failed because points or rects are empty."); 86 + if (Globals->verbose) qWarning("Procrustes alignment failed because points or rects are empty.");
87 return; 87 return;
88 } 88 }
89 89
@@ -158,7 +158,7 @@ class DelaunayTransform : public UntrainableTransform @@ -158,7 +158,7 @@ class DelaunayTransform : public UntrainableTransform
158 158
159 if (points.empty() || rects.empty()) { 159 if (points.empty() || rects.empty()) {
160 dst = src; 160 dst = src;
161 - qWarning("Delauney triangulation failed because points or rects are empty."); 161 + if (Globals->verbose) qWarning("Delauney triangulation failed because points or rects are empty.");
162 return; 162 return;
163 } 163 }
164 164
@@ -177,7 +177,7 @@ class DelaunayTransform : public UntrainableTransform @@ -177,7 +177,7 @@ class DelaunayTransform : public UntrainableTransform
177 for (int i = 0; i < points.size(); i++) { 177 for (int i = 0; i < points.size(); i++) {
178 if (points[i].x() < 0 || points[i].y() < 0 || points[i].y() >= rows || points[i].x() >= cols) { 178 if (points[i].x() < 0 || points[i].y() < 0 || points[i].y() >= rows || points[i].x() >= cols) {
179 dst = src; 179 dst = src;
180 - qWarning("Delauney triangulation failed because points lie on boundary."); 180 + if (Globals->verbose) qWarning("Delauney triangulation failed because points lie on boundary.");
181 return; 181 return;
182 } 182 }
183 subdiv.insert(OpenCVUtils::toPoint(points[i])); 183 subdiv.insert(OpenCVUtils::toPoint(points[i]));
openbr/plugins/regions.cpp
@@ -312,7 +312,7 @@ class RectFromPointsTransform : public UntrainableTransform @@ -312,7 +312,7 @@ class RectFromPointsTransform : public UntrainableTransform
312 dst = src; 312 dst = src;
313 313
314 if (src.file.points().isEmpty()) { 314 if (src.file.points().isEmpty()) {
315 - qWarning("No landmarks"); 315 + if (Globals->verbose) qWarning("No landmarks");
316 dst = src; 316 dst = src;
317 return; 317 return;
318 } 318 }
openbr/plugins/stasm4.cpp
@@ -132,7 +132,7 @@ class StasmTransform : public UntrainableTransform @@ -132,7 +132,7 @@ class StasmTransform : public UntrainableTransform
132 } 132 }
133 133
134 if (!foundFace) { 134 if (!foundFace) {
135 - qWarning("No face found in %s.", qPrintable(src.file.fileName())); 135 + if (Globals->verbose) qWarning("No face found in %s.", qPrintable(src.file.fileName()));
136 dst.file.set("FTE",true); 136 dst.file.set("FTE",true);
137 } else { 137 } else {
138 QList<QPointF> points; 138 QList<QPointF> points;