Here is one of the projects we have to do in NSI (Numerical Computer Science), the Mosaic Project. The goal of this project is to create a program that will generate a mosaic of a given image. This program is written in Python and this is the structure of its files :
- The main file is called main.py. It contains the main code of the program.
- The images folder contains the images that will be used in the mosaic.
- The functions.py file contains the functions that will be used in the program.
-
Import your reference image into the current folder. No need to import the thumbnails, they are already in 20x20 format. A function will be added soon to put custom thumbnails that will be automatically cropped
-
Open the main.py file and replace the values with your image values
-
Run the program. Depending on the size of the image (which is automatically doubled), the processing time may be long.
The goal of the project is to achieve a programme similar to this repo : https://github.com/codebox/mosaic