https://github.com/capjamesg/image-collage
Generate an image collage with computer vision.
https://github.com/capjamesg/image-collage
art computer-vision python zero-shot-object-detection
Last synced: 11 months ago
JSON representation
Generate an image collage with computer vision.
- Host: GitHub
- URL: https://github.com/capjamesg/image-collage
- Owner: capjamesg
- License: mit
- Created: 2024-04-29T10:04:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T11:16:33.000Z (about 2 years ago)
- Last Synced: 2025-07-04T20:54:23.761Z (11 months ago)
- Topics: art, computer-vision, python, zero-shot-object-detection
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Collage Generator
Generate a collage of images where a specific object of interest is focused.
This project uses a zero-shot object detection model, Grounding DINO, to identify regions corresponding to objects of interest. These regions are then cropped and stitched together into a collage.
Here is an example of a collage generated by this project:

## Usage
First, install this project from source:
```
git clone https://github.com/capjamesg/image-collage
cd image-collage
pip3 install -r requirements.txt
```
To generate a collage, run:
```
python3 app.py --input_images=folder/with/images --prompt="object" --confidence=0.7
```
Above, set:
- `input_images` to the name of a directory with all the images you want to stich together into a collage.
- `prompt` to the object of interest you want to identify.
- `confidence` to the minimum confidence a model prediction must be to be considered for inclusion in the image collage.
## License
This project is licensed under an [MIT license](LICENSE).