Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sorry, maybe I was not precise enough. I need to find the exact center of gravity as you called it, an approximation is not near close enough. Thank you for suggesting connectedComponentsWithStats, I will try it and update my post with the results.

Sorry, maybe I was not precise enough. I need to find the exact center of gravity as you called it, an approximation is not near close enough. Thank you for suggesting connectedComponentsWithStats, I will try it and update my post with the results.

EDIT: I found that the solution is very simple: cv2.moments(c)