Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/hansalemaos/cv2_stack_images
- Owner: hansalemaos
- License: mit
- Created: 2022-12-29T21:02:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T21:02:59.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T00:22:18.188Z (about 1 month ago)
- Topics: concat, cv2, images, numpy, python, stack
- Language: Python
- Homepage: https://pypi.org/project/cv2-stack-images
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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 optionalb1 = 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",
)```