Lines Matching refs:circle
326 circle = {}
365 circle['x'] = shape['ctx']
366 circle['y'] = shape['cty']
367 circle['r'] = (shape['width'] + shape['height']) / 4
368 circle['w'] = float(shape['width'])
369 circle['h'] = float(shape['height'])
370 circle['x_offset'] = (shape['ctx'] - img_size[1]//2) / circle['w']
371 circle['y_offset'] = (shape['cty'] - img_size[0]//2) / circle['h']
375 logging.debug('Location: %.1f x %.1f', circle['x'], circle['y'])
376 logging.debug('Radius: %.3f', circle['r'])
378 circle['x_offset'], circle['y_offset'])
394 return circle
397 def append_circle_center_to_img(circle, img, img_name): argument
419 cv2.line(img, (circle['x'], circle['y']), (img_center_x, img_center_y),
425 if circle['x'] > img_center_x:
431 if circle['y'] > img_center_y:
439 cv2.circle(img, (circle['x'], circle['y']), radius_pt, CV2_RED, filled_pt)
440 text_circle_x = move_text_dist * move_text_right_circle + circle['x']
441 text_circle_y = move_text_dist * move_text_down_circle + circle['y']
445 cv2.circle(img, (img_center_x, img_center_y), radius_pt, CV2_RED, filled_pt)