Python OpenCV 圖片簡單拆分與拼接

本文主要實現圖片的簡單拼接與拆分 一、拆分 示例圖片:  拆分代碼如下: 主要思路:讀取圖片後拆分爲兩個矩陣,再顯示即可 import cv2 path3 = '/home/cdyuyanpeng/Documents/ceshi/test.png' img3 = cv2.imread(path3) # the image height sum_rows = img3.shape[0] # t
相關文章
相關標籤/搜索