import cv2
import numpy as np
img = cv2.imread('test.jpg')
res1 = cv2.resize(img,None,fx=2,fy=2,interpolation=cv2.INTER_LINEAR)
height,width = img.shape[:2]
res2 = cv2.resize(img,(int(0.8*width),int(0.8*height)),interpolation=cv2.INTER_AREA)
cv2.imshow('origin_picture',img)
cv2.imshow('res1',res1)
cv2.imshow('res2',res2)
cv2.waitKey(0)
cv2.destoryAllWindow()