Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

opencv draw two images side by side

import cv2
import numpy as np

img1 = cv2.imread("path/to/img1")
img2 = cv2.imread("path/to/img2")

vertical_concat = np.concatenate((img1, img2), axis=0)
cv2.imshow("Vertical plot", vertical_concat)
cv2.waitKey(0)

horizontal_concat = np.concatenate((img1, img2), axis=1)
cv2.imshow("Horizontal plot", horizontal_concat)
cv2.waitKey(0)

cv2.destroyAllWindows()
Comment

PREVIOUS NEXT
Code Example
Python :: python os if file exists 
Python :: np array n same values 
Python :: comment dériver une classe python 
Python :: managin media django 
Python :: print current time hours and minutes in python 
Python :: ban discord.py 
Python :: make a zero list python 
Python :: how to override save method in django 
Python :: get image height width cv2 
Python :: how to get ipconfig from python 
Python :: discord.py unmute 
Python :: open website python 
Python :: remove unicode characters from string python 
Python :: cos in python in degrees 
Python :: sklearn roc curve 
Python :: opencv get area of contour 
Python :: reverse dictionary python 
Python :: delete image with python 
Python :: python convert current datetime to rfc 1123 format 
Python :: unban discord.py 
Python :: pandas drop zero values 
Python :: python array delete last column 
Python :: dictionary sort python 
Python :: pandas standard deviation on column 
Python :: limit axis matplotlib 
Python :: pyqt5 change button color 
Python :: add column as index pandas 
Python :: get all occurrence indices in list python 
Python :: how to save a model fast ai 
Python :: how to plot a graph using matplotlib 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =