hi,
Can i find polar coordinates of object detected in image using cx and cy?
import math
def polar(cx, cy):
return (math.sqrt(cx**2+ cy**2), math.atan(cy/cx) * 180 / math.pi)
print(polar(10, 10))
hi,
Can i find polar coordinates of object detected in image using cx and cy?
import math
def polar(cx, cy):
return (math.sqrt(cx**2+ cy**2), math.atan(cy/cx) * 180 / math.pi)
print(polar(10, 10))