How to Combine 2 Images into 1 Image Horizontally Using Python | Image Data Augmentation 1 |

preview_player
Показать описание
This video will help you to combine 2 images into 1 image using python programming language in easiest and simplest way.

Рекомендации по теме
Комментарии
Автор

Rather than going through all this hazzle, you can do it with just one line of code! use "hconcat" function in OpenCV

import cv2

img1 =
img2 =

# v_img = cv2.vconcat([img1, img2]) # Use this function for vertical concatenation of image
h_img = cv2.hconcat([img1, img2])

# cv2.imshow('Horizontal', h_img)

print('done')

# cv2.imshow('Vertical', v_img)
cv2.waitKey(0)
cv2.destroyAllWindows()

rushirajparmar
welcome to shbcf.ru