This project converts an input image into a brawl map. The resulting image is saved to an output file.
- Load input images and resize them.
- Load tile images from a specified directory.
- Calculate the average color of each tile image.
- Convert the input image to a mosaic using the closest matching tiles based on color.
- Save the converted mosaic image.
- Optionally, print the mosaic image data as JSON.
-
Clone the repository:
git clone https://github.com/ostia27/image2map cd image2map
-
Install the required Python packages:
pip install -r requirements.txt
To run the script, use the following command:
python main.py <input_image> -o <output_image> -s <size>