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; }