python+opencv实现图像缩放

x, y = img_.shape[0:2]
img_ = cv2.resize(img_, (int(y/2), int(x/2)))

  实现图像长宽缩小为原来的一半

猜你喜欢

转载自www.cnblogs.com/niulang/p/12195141.html
今日推荐