A Python program that converts images into image representations.
Warning
What?
Yeah, I mean, mosaics, like this:
Original image | Mosaic |
---|---|
Clone the project:
git clone https://github.com/agarnung/imageimage.git
Install required dependencies (it is recommended tu use a virtual environment):
python3 -m pip install -r requirements.txt
Note
Requirements generated with pipreqs . --force
Run the program in the root folder, e.g.:
python3 imageimage.py --file /opt/imageimage/assets/camera.tif --inputs /opt/imageimage/image_database/ --cols 25 --rows 25 --color_weight 1.0 --gradient_weight 0.1
Please refer to the program help:
python3 imageimage.py --help
- Añadir un máximo número de veces que se puede usar cada imagen del mosaico, para potenciar la heterogeneidad.