Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read image and resize

import cv2
def readImageAndResize(filename:str, size:tuple = (64,64)):
    img = cv2.imread(filename)
    img = cv2.resize(img, size)
    return img
 
PREVIOUS NEXT
Tagged: #read #image #resize
ADD COMMENT
Topic
Name
8+6 =