reader/reader_utils.py
def image_flipping_hori(img):
    """
        randomly flips images left-right
        :param img: input image
        :return:flipped images
        """
    h_flip = np.random.randint(0, 1)
    if h_flip == 1:
        img = img[:, ::-1, :]
    return img

        randomly flips images left-right
        :param img: input image
        :return:flipped images
        
randomly flips images left-right
randomly flips images left - right
def image_flipping_hori(img):
    h_flip = np.random.randint(0, 1)
    if h_flip == 1:
        img = img[:, ::-1, :]
    return img
def image_flipping_hori ( img ) : h_flip = np . random . randint ( 0 , 1 ) if h_flip == 1 : img = img [ : , : : - 1 , : ] return img
randomly flips images left-right
randomly flips images left - right
"""
        randomly flips images left-right
        :param img: input image
        :return:flipped images
        """
None
img
None