1 | initial version |
I'm going to go out on a limb here and guess it's because you don't have any code that even attempts to find the center of gravity. Fortunately for you, OpenCV has a function for just that. Moments. As a matter of fact, just about everything you need should be on that page.