Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #downsample #image #opencv
ADD COMMENT
Topic
Name
8+3 =