콘텐츠로 이동
Search

Cv2.moments

lastmod 2025-01-08created 2023-01-093 edits

Center of the contour

# 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

author Zer0 sitemap