Python OpenCV 图片简单拆分与拼接

本文主要实现图片的简单拼接与拆分 一、拆分 示例图片:  拆分代码如下: 主要思路:读取图片后拆分为两个矩阵,再显示即可 import cv2 path3 = '/home/cdyuyanpeng/Documents/ceshi/test.png' img3 = cv2.imread(path3) # the image height sum_rows = img3.shape[0] # t
相关文章
相关标签/搜索