Centroid of a contour
You can use cv2.connectedComponentsWithStats it return the centroid and size of contour.
In OpenCV under Python, is there no better way to compute the centroid of the inside a contour than with the function cv2.moments, which computes all moments up to order 3 (and is overkill) ?