Need to find the centroid of a circular camera image

Gene Heskett gheskett at shentel.net
Mon Sep 24 12:06:19 EDT 2018


On Monday 24 September 2018 10:55:23 Chris Angelico wrote:

> On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett <gheskett at shentel.net> 
wrote:
> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> > > 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
> >
> > I take it that this is python-2.7? code?
> >
> > Searching thru the python3 results in synaptic, on a stretch install
> > on the rock64, python3 has not a p3 version of numpy or cv2.
> >
> > And I'd like to try and make it run on 3.5 since that seems to be
> > the newest on stretch. That would tend to future-proof this past the
> > final fixes and eventual demise of python-2.
> >
> > Is there hope for things like numpy and cv2 being ported to python
> > 3? Or can numpy and cv2 be used against 3.5 as is?
>
> Dunno about cv2, but numpy is certainly available for Python 3.

What do they call it in debian stretch for arm64?

> ChrisA

Thanks ChrisA

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Python-list mailing list