From 67c30b3a4346dff600a7a4c75351e1c03af682f3 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 17 Jun 2014 15:28:50 -0400 Subject: [PATCH] misc tweaks --- openbr/plugins/algorithms.cpp | 1 + openbr/plugins/gallery.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/algorithms.cpp b/openbr/plugins/algorithms.cpp index 40c08e7..a50c740 100644 --- a/openbr/plugins/algorithms.cpp +++ b/openbr/plugins/algorithms.cpp @@ -39,6 +39,7 @@ class AlgorithmsInitializer : public Initializer Globals->abbreviations.insert("BlurredFaceDetection", "Open+LimitSize(1024)+SkinMask/(Cvt(Gray)+GradientMask)+And+Morph(Erode,16)+LargestConvexArea"); Globals->abbreviations.insert("DrawFaceDetection", "Open+Cascade(FrontalFace)+Expand+ASEFEyes+Draw"); Globals->abbreviations.insert("ShowFaceDetection", "DrawFaceDetection+Expand+Show"); + Globals->abbreviations.insert("DownloadFaceRecognition", "Download+Expand+FaceDetection+Expand++Expand++++SetMetadata(AlgorithmID,-1):MatchProbability(ByteL1)"); Globals->abbreviations.insert("OpenBR", "FaceRecognition"); Globals->abbreviations.insert("GenderEstimation", "GenderClassification"); Globals->abbreviations.insert("AgeEstimation", "AgeRegression"); diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 0108d39..2c32273 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -315,7 +315,9 @@ class urlGallery : public BinaryGallery Template readTemplate() { Template t; - t.file.set("URL", QString::fromLocal8Bit(gallery.readLine()).simplified()); + const QString url = QString::fromLocal8Bit(gallery.readLine()).simplified(); + if (!url.isEmpty()) + t.file.set("URL", url); return t; } -- libgit2 0.21.4