Commit e2b9148e9b401c9450e63c83279ef422a8069729
1 parent
37f46fbf
Stasm talks too much, using verbose now
Showing
4 changed files
with
6 additions
and
6 deletions
openbr/plugins/crop.cpp
| ... | ... | @@ -62,7 +62,7 @@ class ROITransform : public UntrainableTransform |
| 62 | 62 | { |
| 63 | 63 | if (src.file.rects().empty()) { |
| 64 | 64 | dst = src; |
| 65 | - qWarning("No rects present in file."); | |
| 65 | + if (Globals->verbose) qWarning("No rects present in file."); | |
| 66 | 66 | } |
| 67 | 67 | else |
| 68 | 68 | foreach (const QRectF &rect, src.file.rects()) | ... | ... |
openbr/plugins/landmarks.cpp
| ... | ... | @@ -83,7 +83,7 @@ class ProcrustesTransform : public Transform |
| 83 | 83 | |
| 84 | 84 | if (points.empty() || rects.empty()) { |
| 85 | 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 | 87 | return; |
| 88 | 88 | } |
| 89 | 89 | |
| ... | ... | @@ -158,7 +158,7 @@ class DelaunayTransform : public UntrainableTransform |
| 158 | 158 | |
| 159 | 159 | if (points.empty() || rects.empty()) { |
| 160 | 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 | 162 | return; |
| 163 | 163 | } |
| 164 | 164 | |
| ... | ... | @@ -177,7 +177,7 @@ class DelaunayTransform : public UntrainableTransform |
| 177 | 177 | for (int i = 0; i < points.size(); i++) { |
| 178 | 178 | if (points[i].x() < 0 || points[i].y() < 0 || points[i].y() >= rows || points[i].x() >= cols) { |
| 179 | 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 | 181 | return; |
| 182 | 182 | } |
| 183 | 183 | subdiv.insert(OpenCVUtils::toPoint(points[i])); | ... | ... |
openbr/plugins/regions.cpp
openbr/plugins/stasm4.cpp
| ... | ... | @@ -132,7 +132,7 @@ class StasmTransform : public UntrainableTransform |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 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 | 136 | dst.file.set("FTE",true); |
| 137 | 137 | } else { |
| 138 | 138 | QList<QPointF> points; | ... | ... |