diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 030f250..03e45ab 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -881,6 +881,45 @@ class statGallery : public Gallery BR_REGISTER(Gallery, statGallery) +/*! + * \ingroup galleries + * \brief Implements the FDDB detection format. + * \author Josh Klontz \cite jklontz + * + * http://vis-www.cs.umass.edu/fddb/README.txt + */ +class FDDBGallery : public Gallery +{ + Q_OBJECT + + TemplateList readBlock(bool *done) + { + *done = true; + QStringList lines = QtUtils::readLines(file); + TemplateList templates; + while (!lines.empty()) { + const QString fileName = lines.takeFirst(); + int numDetects = lines.takeFirst().toInt(); + for (int i=0; i