摘要: 因为在 OpenCV2 里面,所有的东西都是 numpy array 即 np.ndarray1,所以使用 opencv 剪切图像主要原理是用 ndarray 的切片。一张图片基本上都是三维数组:行,列,通道数,切片只是涉及到前两维。 import cv2 import numpy img = cv 阅读全文
posted @ 2019-12-26 14:50 胸怀丶若谷 阅读(200) 评论(0) 推荐(0) 编辑