# @File : opencv_.py
# @Author: Wang Zhimin
# @Date : 2019/10/17
import cv2 as cv
src=cv.imread("D:/stu/zhenshuang.jpg")
cv.imshow("inital",src)
src1=cv.flip(src,1)
src2=cv.flip(src,0)
src3=cv.flip(src,-1)
cv.imshow("flip Horizontally ",src1) #水平翻转
cv.imshow("flip Vertically ",src2) #垂直翻转
cv.imshow("flip Horizontally & Vertically ",src3)#水平并且垂直翻转
cv.waitKey(0)
结果