Commit 9f1f38db409b7f962e27008c384bbe1eacbf8351

Authored by Josh Klontz
2 parents 64a0b9f4 cbe70d01

Merge pull request #271 from biometrics/no_fte_data

don't save matrix data for failure to enroll templates
Showing 1 changed file with 4 additions and 1 deletions
openbr/plugins/gallery.cpp
@@ -209,7 +209,10 @@ class galGallery : public BinaryGallery @@ -209,7 +209,10 @@ class galGallery : public BinaryGallery
209 { 209 {
210 if (t.isEmpty() && t.file.isNull()) 210 if (t.isEmpty() && t.file.isNull())
211 return; 211 return;
212 - stream << t; 212 + else if (t.file.fte)
  213 + stream << Template(t.file); // only write metadata for failure to enroll
  214 + else
  215 + stream << t;
213 } 216 }
214 }; 217 };
215 218