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.
2 | No.2 Revision |
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)