diff --git a/openbr/plugins/gallery/binary.cpp b/openbr/plugins/gallery/binary.cpp index d87ebc0..4c7f682 100644 --- a/openbr/plugins/gallery/binary.cpp +++ b/openbr/plugins/gallery/binary.cpp @@ -178,10 +178,13 @@ class galGallery : public BinaryGallery else if (t.file.fte) { // Only write metadata for failure to enroll, but remove any stored QVariants of type cv::Mat File f = t.file; - QList values = f.localMetadata().values(); - for (int i=0; i i(metadata); + while (i.hasNext()) { + i.next(); + if (strcmp(i.value().typeName(),"cv::Mat") == 0) + f.remove(i.key()); + } stream << Template(f); } else