Need to find the centroid of a circular camera image

Chris Angelico rosuav at gmail.com
Mon Sep 24 10:55:23 EDT 2018


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 2018年9月23日 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.
ChrisA


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /