From 0241284082d943b8023ba8960fae113a587d5e74 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 18 Mar 2016 14:28:58 -0400 Subject: [PATCH] pre-load an instance of the landmarker, whitespace fixes --- openbr/plugins/classification/dlib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbr/plugins/classification/dlib.cpp b/openbr/plugins/classification/dlib.cpp index acd4d8e..2ea2732 100644 --- a/openbr/plugins/classification/dlib.cpp +++ b/openbr/plugins/classification/dlib.cpp @@ -35,21 +35,21 @@ class DLandmarkerTransform : public UntrainableTransform Q_OBJECT private: - Resource shapeResource; void init() { shapeResource.setResourceMaker(new DLibShapeResourceMaker()); + shapeResource.release(shapeResource.acquire()); // Pre-load one instance of the model } QPointF averagePoints(const QList &points, int rangeBegin, int rangeEnd) const { - QPointF point; + QPointF point; for (int i=rangeBegin; i