osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need to find the centroid of a circular camera image


On Sun, 23 Sep 2018 at 20:45, Gene Heskett <gheskett at shentel.net> wrote:
>
> save the image and locate the centroid of that saved image.
>
> Is there code to do that centroid math in somebodies "bottom desk
> drawer"? Something I could download and control with a bash script which
> I'm fair at?

This is easy enough to in OpenCV. The code at the top of this page
does what you want:

https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html

--
Oscar