Commit 380ab9e637f70b6c841e1f38d24da7c42afea3f9
Merge pull request #318 from biometrics/readMessage
Error message for ReadTransform
Showing
1 changed file
with
5 additions
and
0 deletions
openbr/plugins/misc.cpp
| ... | ... | @@ -115,6 +115,9 @@ private: |
| 115 | 115 | void project(const Template &src, Template &dst) const |
| 116 | 116 | { |
| 117 | 117 | dst.file = src.file; |
| 118 | + if (Globals->verbose) | |
| 119 | + qDebug("Opening %s", qPrintable(src.file.flat())); | |
| 120 | + | |
| 118 | 121 | if (src.empty()) { |
| 119 | 122 | const Mat img = imread(src.file.resolved().toStdString(), mode); |
| 120 | 123 | if (img.data) dst.append(img); |
| ... | ... | @@ -126,6 +129,8 @@ private: |
| 126 | 129 | else dst.file.fte = true; |
| 127 | 130 | } |
| 128 | 131 | } |
| 132 | + if (dst.file.fte) | |
| 133 | + qWarning("Error opening %s", qPrintable(src.file.flat())); | |
| 129 | 134 | } |
| 130 | 135 | }; |
| 131 | 136 | BR_REGISTER(Transform, ReadTransform) | ... | ... |