画像を並べる
2019/07/09
Python2.7.6, OpenCV3.0.0
# -*- coding: utf-8 -*-
import cv2
im1 = cv2.imread('im1.jpg')
im2 = cv2.imread('im2.jpg')
im3 = cv2.vconcat([im1, im2])
im4 = cv2.hconcat([im1, im2])
cv2.imwrite('output1.jpg', im3)
cv2.imwrite('output2.jpg', im4)