Commit 4c9533be7bb05a54858b3a99eb59ac6b6e8de08b
1 parent
e74469ab
tweaks for extracting metadata
Showing
2 changed files
with
2 additions
and
0 deletions
openbr/plugins/misc.cpp
openbr/plugins/template.cpp
| ... | ... | @@ -109,6 +109,7 @@ class JSONTransform : public UntrainableMetaTransform |
| 109 | 109 | dst.file = src.file; |
| 110 | 110 | const QByteArray json = QJsonDocument(QJsonObject::fromVariantMap(src.file.localMetadata())).toJson(); |
| 111 | 111 | dst += cv::Mat(1, json.size(), CV_8UC1, (void*) json.data()); |
| 112 | + dst.file.set("AlgorithmID", 2); | |
| 112 | 113 | } |
| 113 | 114 | }; |
| 114 | 115 | ... | ... |