Pycharm open CV learning 7

Eddie Chen
Jun 1, 2021

串接照片(水平串接)

import cv2
import numpy as np

img=cv2.imread("resources/3.PNG")

imgHor = np.hstack((img,img))





cv2.imshow("Kevin test",imgHor)


cv2.waitKey(0)

串接指令

imgHor = np.hstack((img,img))

垂直串接

import cv2
import numpy as np

img=cv2.imread("resources/5.PNG")


imgHor = np.hstack((img,img))

imgVer = np.vstack((img,img))





cv2.imshow("Kevin test 水平",imgHor)
cv2.imshow("Kevin test 垂直",imgVer)


cv2.waitKey(0)

--

--