defget_word_by_circle(img,circle_center,radius,radius_width): black_img = np.zeros((radius_width,int(radius[1]*(radius[0]+radius[1])/radius[0])+500,3),dtype='uint8') for row inrange(0,black_img.shape[0]): for col inrange(0,black_img.shape[1]): theta = 0-(math.pi*2/black_img.shape[1]*(col+1)+1.57)
def get_word_by_circle(img,circle_center,radius,radius_width,inclination): black_img = np.zeros((radius_width,int(radius[1]*(radius[0]+radius[1])/radius[0])+500,3),dtype='uint8') for row in range(0,black_img.shape[0]): for col in range(0,black_img.shape[1]): theta = 0-(math.pi*2/black_img.shape[1]*(col+1)+1.57-inclination)