<reponame>raguvarankr/deep_learning
# USAGE
# python flipping.py minions.jpg

# import the necessary packages

import cv2
import sys


img = sys.argv[1]
# load the image and show it
image = cv2.imread(img)
cv2.imshow("Original", image)

# flip the image horizontally
flipped = cv2.flip(image, 1)
cv2.imshow("Flipped Horizontally", flipped)

# flip the image vertically
flipped = cv2.flip(image, 0)
cv2.imshow("Flipped Vertically", flipped)

# flip the image along both axes
flipped = cv2.flip(image, -1)
cv2.imshow("Flipped Horizontally & Vertically", flipped)
cv2.waitKey(0)
# USAGE
# python flipping.py minions.jpg

# import the necessary packages

import cv2
import sys


img = sys.argv[1]
# load the image and show it
image = cv2.imread(img)
cv2.imshow("Original", image)

# flip the image horizontally
flipped = cv2.flip(image, 1)
cv2.imshow("Flipped Horizontally", flipped)

# flip the image vertically
flipped = cv2.flip(image, 0)
cv2.imshow("Flipped Vertically", flipped)

# flip the image along both axes
flipped = cv2.flip(image, -1)
cv2.imshow("Flipped Horizontally & Vertically", flipped)
cv2.waitKey(0)
# USAGE # python flipping.py minions.jpg # import the necessary packages # load the image and show it # flip the image horizontally # flip the image vertically # flip the image along both axes