How to resize image using opencv and python

upscaled = cv2.resize(img, dim, interpolation=cv2.INTER_NEAREST)

tags: python - opencv - resize - image