Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

downsample image opencv

import cv2

image = cv2.imread('testimage.jpg')
print("Size of image before pyrDown: ", image.shape)

image = cv2.pyrDown(image)
print("Size of image after pyrDown: ", image.shape)
cv2.imshow('DownSample', image)
Comment

PREVIOUS NEXT
Code Example
Python :: howe to print all values and keysin d 
Python :: match statement 
Python :: remove zeros from decimal python 
Python :: how to delete an item from a list python 
Python :: how to create an entry box on tkinter python 
Python :: get turtle pos 
Python :: euclidean algorithm recursive python 
Python :: input in one line python 
Python :: How to take space-separated integer input in Python 3 
Python :: get last 3 in array python 
Python :: add to python list 
Python :: seaborn pairplot python 
Python :: find string in string python 
Python :: how to print correlation to a feature in pyhton 
Python :: python remove blanks from string 
Python :: string slices 
Python :: reading binary file 
Python :: python exception 
Python :: zip multiple lists 
Python :: import class in python 
Python :: upload to test pypi 
Python :: fibonacci 
Python :: how to set and run flask app on terminal 
Python :: entropy formula pyhon 
Python :: python dictionary to list 
Python :: how to find unique values in list in python 
Python :: python game example 
Python :: remove leading and lagging spaces dataframe python 
Python :: csr_matric scipy lib 
Python :: get list with random numbers python 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =