One ,cv2.resize() 
import cv2 img = cv2.imread("image1.png") print(img.shape) dst =
cv2.resize(img,(img.shape[1]//2,img.shape[0]//2),interpolation=cv2.INTER_CUBIC)
print(dst.shape) cv2.imshow("dst",dst) cv2.imshow("original",img) cv2.waitKey(0)

 

Two ,imutil.resize()
import cv2 import imutils img = cv2.imread("image1.png") print(img.shape) dst
= imutils.resize(img,width=img.shape[1]//2,height=img.shape[0]//2)
print(dst.shape) cv2.imshow("dst",dst) cv2.imshow("original",img) cv2.waitKey(0)
The effect is the same as above .

Technology
©2019-2020 Toolsou All rights reserved,
about String How to create objects JavaScript Hundred refining into Immortals 1.15 Legendary Is MCU embedded , It's a cliche Resume the 13th session python Blue Bridge Cup html+css+js Make a simple website home page java Connect to the database to realize basic addition, deletion, modification and query VHDL——JK trigger Java of JDBC programming 3 4j It's not legal python expression _3+4j It's not legal Python expression .【linux】shell: ordinary shell Script exercise