图片剪切

# 100 -> 200 x
# 100 -> 300 y
import cv2

img = cv2.imread('image0.jpg', 1)
imgInfo = img.shape
dst = img[100:200, 100:300]

cv2.imshow('image', dst)
cv2.waitKey(0)

  

原文地址:https://www.cnblogs.com/mjn1/p/11215721.html