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,
c Language implementation 《 Student management system 》 No hole is the future of mobile phone ? There are still many problems to be solved Junior , A little sense , Just for mutual encouragement How to use Vue Used in Echarts Visual Library The 11th Blue Bridge Cup Java The second provincial competition B Group part Python- be based on OpenCV Contour fill for flooding algorithm hole filling 【C#】 The realization of student achievement information management system List Common interview questions in the collection and simple ideas China Mobile Science Popularization : Why do mobile networks call “ Cellular mobile network ”【Golang Basic series 10 】Go language On conditional sentences if