Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv2 hconcat

import cv2

img1 = cv2.imread('opencv/lena.jpg')
img2 = cv2.imread('opencv/baboon.jpg')

v_img = cv2.vconcat([img1, img2])
h_img = cv2.hconcat([img1, img2])

cv2.imshow('Horizontal', h_img)
cv2.imshow('Vertical', v_img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Comment

PREVIOUS NEXT
Code Example
Python :: matplotlib legend 
Python :: pygame change color mouse hover 
Python :: python check if hotkey pressed 
Python :: python for get index and value 
Python :: on_ready discord.py 
Python :: dataframe rank groupby 
Python :: how to make a text input box python pygame 
Python :: tracking mouse position tkinter python 
Python :: how to separate string in python by blank line 
Python :: upgrade package python 
Python :: python for loop jump by 2 
Python :: python get int from string 
Python :: yesterday in python 
Python :: python send sms 
Python :: select DF columns python 
Python :: pyspark create empty dataframe 
Python :: python read file without newline 
Python :: python check if list contains elements of another list 
Python :: Add help text in Django model forms 
Python :: python input separated by 
Python :: python get command line arguments 
Python :: remove unicode from string python 
Python :: python printing date 
Python :: how to display equation in tkinter 
Python :: flask post 
Python :: oddlyspecific09123890183019283 
Python :: python xor two bytes 
Python :: install tkinter python 3 mac 
Python :: easy sending email python 
Python :: how to replace nan with 0 in pandas 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =