Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv2.flip

# Python program to explain cv2.flip() method

# importing cv2
import cv2

# path
path = r'C:UsersuserDesktopgeeks14.png'

# Reading an image in default mode
src = cv2.imread(path)

# Window name in which image is displayed
window_name = 'Image'

# Using cv2.flip() method
# Use Flip code 0 to flip vertically
image = cv2.flip(src, 0)

# Displaying the image
cv2.imshow(window_name, image)
cv2.waitKey(0)
Comment

PREVIOUS NEXT
Code Example
Python :: render django template 
Python :: concatenate two tensors pytorch 
Python :: python random walk 
Python :: loading in pyqt5 
Python :: sort in python 
Python :: 405 status code django 
Python :: create new column with length of old column value python 
Python :: conda install pypy 
Python :: stop function python 
Python :: multiprocessing join python 
Python :: python random array shuffle 
Python :: Write Python programs to print numbers from 1 to 10000 while loops 
Python :: count nan values 
Python :: python return number of characters in string 
Python :: __str__ method python 
Python :: max int python 
Python :: pyqt remove widget 
Python :: csv len python 
Python :: hash table in python 
Python :: python list Clear the list content 
Python :: paradigm meaning in python 
Python :: how to make a terminal in python 
Python :: django queryset count 
Python :: write pyspark dataframe to csv 
Python :: pandas convert string column to int list column 
Python :: Format UTC to local timezone using PYTZ for Django 
Python :: how to iterate over a list in python 
Python :: find element in list that matches a condition 
Python :: knn with sklearn 
Python :: captions overlap in seaborn plot jupyter 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =