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