Skip to main content

Multiple image stack with cv2 (calculates height/width)

Project description

Multiple image stack with cv2 (calculates height/width)

# Tested with:
# Python 3.9.13
# Windows 10

pip install cv2-multistack

from cv2_multistack import hstack_multiple_pics, vstack_multiple_pics


# Allowed image formats: url/path/buffer/base64/PIL/np
listofpics = [
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000008.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000009.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000010.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000011.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000012.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000013.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000014.png""",
"""https://raw.githubusercontent.com/hansalemaos/screenshots/main/cv2_putTrueTypeText_000015.png""",

]

bibi1=hstack_multiple_pics(listofpics, height=100, channels=3)
bibi2=vstack_multiple_pics(listofpics, width=100, channels=3)

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cv2_multistack-0.10.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

cv2_multistack-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