img = cv2.resize(img,None,fx=0.5,fy=0.5,interpolation=cv2.INTER_AREA)
分别设定长宽倍数,可以大于1,可以小于1
python-opencv cv2:按比例resize图片
最新推荐文章于 2025-03-17 21:07:45 发布
img = cv2.resize(img,None,fx=0.5,fy=0.5,interpolation=cv2.INTER_AREA)
分别设定长宽倍数,可以大于1,可以小于1