Cv2.moments Center of the contour OpenCV center of contour - PyImageSearch # compute the center of the contour M = cv2.moments(c) cX = int(M["m10"] / M["m00"]) cY = int(M["m01"] / M["m00"]) return cX, cY See also opencv Image moment OpenCV:Moments 이 문서를 가리키는 문서 Contours Cv2.approxPolyDP Cv2.arcLength Cv2.boundingRect Cv2.contourArea Cv2.drawContours Cv2.findContours Cv2.fitEllipse Cv2.fitLine Cv2.minAreaRect Cv2.minEnclosingCircle Cv2.minEnclosingTriangle Digital image processing Image moment OpenCV:Contours OpenCV:Moments lastmod 2025-01-08created 2025-01-08author Zer0 sitemap