From: anirudt Date: Mon, 29 Aug 2016 14:52:08 +0000 (+0530) Subject: docs: adds note for python in docs related to moments X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1581^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6825375694be46933aed68dfe7e196fed26d9772;p=platform%2Fupstream%2Fopencv.git docs: adds note for python in docs related to moments --- diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index 71c4f48..ad71d8b 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -3570,6 +3570,8 @@ results are returned in the structure cv::Moments. @param array Raster image (single-channel, 8-bit or floating-point 2D array) or an array ( \f$1 \times N\f$ or \f$N \times 1\f$ ) of 2D points (Point or Point2f ). +Note: For Python users, note that the numpy type for the input array should be either np.int32 or +np.float32, or in general of type CV_32S or CV_32F. @param binaryImage If it is true, all non-zero image pixels are treated as 1's. The parameter is used for images only. @returns moments.