Create a collage from images with OpenCV
Project description
Create a collage from images with OpenCV
from cv2_collage import create_collage
lst = [
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_40_27-.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_49_27-.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_01_57-.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_02_09-.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind1.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind2.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind3.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind4.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000006.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000007.png",
"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000008.png",
]
from numpy_choices import get_random_items_from_list
coldone = create_collage(
lst=get_random_items_from_list(lst, 16),
width=1000,
background=(0, 0, 0),
save_path=r"F:\cv2mergepics\m\tetete.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_collage-0.10.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for cv2_collage-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317aa39edc9cc810d5052fd7b585db52065a1c9f0420f6cd0f5805d3de055010 |
|
MD5 | e6996011fad1dd84486172e6c6c4e124 |
|
BLAKE2b-256 | aabb39d7b25ead9ab6b895ac8b8084d723ee84ececa6dc401a0c72048bd248ef |