OpenCV-Python图像裁剪

import cv2
import matplotlib.pyplot as plt
import numpy as np

image = cv2.imread("./images/lena.jpg")
print(image.shape)
cv2.imshow("src",image)

img = image[200:300,100:500]
cv2.imshow("img",img)
cv2.waitKey(0)
cv2.destroyAllWindows()

OpenCV-Python图像裁剪_第1张图片

你可能感兴趣的:(#,OpenCv,opencv)