I originally asked this here but I am struggling to take the concepts, particularly "Circumcenter", discussed there and apply it in my context. So here it is in my context...
I have a small robot that can "see" (via a camera) a partial arc (from a birds-eye view)
Therefore I know the height and the width of the square and therefore the width and height of the arc, I am sure there must be a way of approximating the circles centre?
What would be the quickest (not necessarily the most accurate) way of helping my robot find the centre.
In my head these are the steps of the problem:
- Break up the arc into evenly spaced vectors ?
- Work out the angle between the vectors
- Use this information to complete the circle ?
- Work out radius of circle
- Find the center of the circle
Basically I would love some input on this problem because I think i know
- Dot Product
- Add up the lengths of all the vectors to get circumference and then divide by pi, then divide by 2 (or divide by Tau : ) )
- I think this is where circumcentre comes in
Basically I feel I have some pieces of the puzzle but I am not sure how they fit together.
I am currently using python with OpenCV and you may have guessed, I am not great at understanding math unless its expressed in algebraic formula or code.
Here are some illustrive pictures to reference: