Skip to main content

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


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)

Uploaded Source

Built Distribution

cv2_stack_images-0.10-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page