diff --git a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp index 63853e771b..8eaf538b6e 100644 --- a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp +++ b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp @@ -306,7 +306,7 @@ public: CV_WRAP virtual bool empty() const; CV_WRAP bool load( const string& filename ); - bool read( const FileNode& node ); + virtual bool read( const FileNode& node ); CV_WRAP virtual void detectMultiScale( const Mat& image, CV_OUT vector& objects, double scaleFactor=1.1, @@ -343,7 +343,7 @@ protected: friend int predictCategoricalStump( CascadeClassifier& cascade, Ptr &featureEvaluator); bool setImage( Ptr&, const Mat& ); - int runAt( Ptr&, Point ); + virtual int runAt( Ptr&, Point ); class Data {