reader/reader_utils.py
def image_rotating(img):
    """
    randomly rotate images by 0/90/180/270 degrees
    :param img: input image
    :return:rotated images
    """
    rot_time = np.random.randint(low=0, high=4)
    img = np.rot90(img, rot_time, (0, 1))
    return img

    randomly rotate images by 0/90/180/270 degrees
    :param img: input image
    :return:rotated images
    
randomly rotate images by 0/90/180/270 degrees
randomly rotate images by 0 / 90 / 180 / 270 degrees
def image_rotating(img):
    rot_time = np.random.randint(low=0, high=4)
    img = np.rot90(img, rot_time, (0, 1))
    return img
def image_rotating ( img ) : rot_time = np . random . randint ( low = 0 , high = 4 ) img = np . rot90 ( img , rot_time , ( 0 , 1 ) ) return img
randomly rotate images by 0/90/180/270 degrees
randomly rotate images by 0 / 90 / 180 / 270 degrees
"""
    randomly rotate images by 0/90/180/270 degrees
    :param img: input image
    :return:rotated images
    """
None
img
None