hi,
Can i find polar coordinates of object detected in image using cx and cy?
polar coordinates
-
- Posts: 41
- Joined: Mon Oct 15, 2018 6:34 am
- iabdalkader
- Posts: 1285
- Joined: Sun May 24, 2015 3:53 pm
Re: polar coordinates
Code: Select all
import math
def polar(cx, cy):
return (math.sqrt(cx**2+ cy**2), math.atan(cy/cx) * 180 / math.pi)
print(polar(10, 10))
Who is online
Users browsing this forum: No registered users and 1 guest