Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hansalemaos/cv2_stack_images

Stacks 2 images (horizontal/vertical)
https://github.com/hansalemaos/cv2_stack_images

concat cv2 images numpy python stack

Last synced: 10 days ago
JSON representation

Stacks 2 images (horizontal/vertical)

Awesome Lists containing this project

README

        

Stacks 2 images (horizontal/vertical)

```python

$pip install cv2-stack-images
from cv2_stack_images import concat2images

# Allowed image formats: url/path/buffer/base64/PIL/np
# You must pass either width or height, but not both!
# save_path is optional

b1 = concat2images(
img1=r"https://github.com/hansalemaos/screenshots/raw/main/colorfind3.png",
img2=r"https://github.com/hansalemaos/screenshots/raw/main/pic4.png",
width=300,
save_path="f:\\concatimg\\vertical.png",
)
b2 = concat2images(
img1=r"https://github.com/hansalemaos/screenshots/raw/main/colorfind3.png",
img2=r"https://github.com/hansalemaos/screenshots/raw/main/pic4.png",
height=300,
save_path="f:\\concatimg\\horizontal.png",
)

```