Stacks 2 images (horizontal/vertical)
Project description
Stacks 2 images (horizontal/vertical)
$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",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cv2_stack_images-0.10.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for cv2_stack_images-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4adb6d5206f83f4386460570452a0435aca76c2afd9d8652d09f7a4b90f329 |
|
MD5 | bfed5cc7e336a4564c5056456c3684ae |
|
BLAKE2b-256 | d36cdf3878ce30d6b8e418348eb2be603116bfef668511401bdbc204d66f2602 |