https://github.com/hansalemaos/cv2_collage
Create a collage from images with OpenCV
https://github.com/hansalemaos/cv2_collage
collage numpy opencv python
Last synced: about 1 month ago
JSON representation
Create a collage from images with OpenCV
- Host: GitHub
- URL: https://github.com/hansalemaos/cv2_collage
- Owner: hansalemaos
- License: mit
- Created: 2022-12-29T20:29:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T20:32:48.000Z (over 3 years ago)
- Last Synced: 2025-04-01T13:04:07.108Z (about 1 year ago)
- Topics: collage, numpy, opencv, python
- Language: Python
- Homepage: https://pypi.org/project/cv2-collage/
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
Create a collage from images with OpenCV
```python
$ pip install cv2-collage
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",
)
```
