diff --git a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp index e7ce46fdc1..e21573ac24 100644 --- a/modules/objdetect/include/opencv2/objdetect/objdetect.hpp +++ b/modules/objdetect/include/opencv2/objdetect/objdetect.hpp @@ -546,22 +546,22 @@ public: const vector& locations=vector()) const; //with found weights output CV_WRAP virtual void detect(const Mat& img, CV_OUT vector& foundLocations, - vector& weights, + CV_OUT vector& weights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const vector& searchLocations=vector()) const; //without found weights output - CV_WRAP virtual void detect(const Mat& img, CV_OUT vector& foundLocations, + virtual void detect(const Mat& img, CV_OUT vector& foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const vector& searchLocations=vector()) const; //with result weights output CV_WRAP virtual void detectMultiScale(const Mat& img, CV_OUT vector& foundLocations, - vector& foundWeights, double hitThreshold=0, + CV_OUT vector& foundWeights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0,bool useMeanshiftGrouping = false) const; //without found weights output - CV_WRAP virtual void detectMultiScale(const Mat& img, CV_OUT vector& foundLocations, + virtual void detectMultiScale(const Mat& img, CV_OUT vector& foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0, bool useMeanshiftGrouping = false) const; diff --git a/samples/python2/peopledetect.py b/samples/python2/peopledetect.py index 5c038bf200..7efd1d05c9 100644 --- a/samples/python2/peopledetect.py +++ b/samples/python2/peopledetect.py @@ -38,7 +38,7 @@ if __name__ == '__main__': print 'loading error' continue - found = hog.detectMultiScale(img, winStride=(8,8), padding=(32,32), scale=1.05) + found, w = hog.detectMultiScale(img, winStride=(8,8), padding=(32,32), scale=1.05) found_filtered = [] for ri, r in enumerate(found): for qi, q in enumerate(found):