diff --git a/modules/video/doc/motion_analysis_and_object_tracking.rst b/modules/video/doc/motion_analysis_and_object_tracking.rst index d27c20b3b8..ba3e44c2e2 100644 --- a/modules/video/doc/motion_analysis_and_object_tracking.rst +++ b/modules/video/doc/motion_analysis_and_object_tracking.rst @@ -322,7 +322,7 @@ Splits a motion history image into a few parts corresponding to separate indepen .. ocv:function:: void segmentMotion(InputArray mhi, OutputArray segmask, vector& boundingRects, double timestamp, double segThresh) -.. ocv:pyfunction:: cv2.segmentMotion(mhi, boundingRects, timestamp, segThresh[, segmask]) -> segmask +.. ocv:pyfunction:: cv2.segmentMotion(mhi, timestamp, segThresh[, segmask]) -> segmask, boundingRects .. ocv:cfunction:: CvSeq* cvSegmentMotion( const CvArr* mhi, CvArr* segMask, CvMemStorage* storage, double timestamp, double segThresh ) .. ocv:pyoldfunction:: cv.SegmentMotion(mhi, segMask, storage, timestamp, segThresh)-> None diff --git a/modules/video/include/opencv2/video/tracking.hpp b/modules/video/include/opencv2/video/tracking.hpp index bcf969c88b..6a4b1d5b79 100644 --- a/modules/video/include/opencv2/video/tracking.hpp +++ b/modules/video/include/opencv2/video/tracking.hpp @@ -259,7 +259,7 @@ CV_EXPORTS_W double calcGlobalOrientation( InputArray orientation, InputArray ma double duration ); CV_EXPORTS_W void segmentMotion(InputArray mhi, OutputArray segmask, - vector& boundingRects, + CV_OUT vector& boundingRects, double timestamp, double segThresh); //! updates the object tracking window using CAMSHIFT algorithm