Contour Transform¶
shift_cnt¶
- def shift_cnt(np_arr, shift_h=None, shift_w=None)::
“”” Shift the position of contour.
“”“
rotate_cnt¶
- def rotate_cnt(np_arr, angle):
“”” Rotate contour clockwise by radian angle around contour center
“”“
smooth_cnt¶
- def smooth_cnt(np_arr, sigma=5):
“”” Smooth the contour
“”“