img = cv2.resize(img,None,fx=0.5,fy=0.5,interpolation=cv2.INTER_AREA)
分别设定长宽倍数,可以大于1,可以小于1
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐