Fun little project for generating mosaic poster from tiles dataset
* resize image dataset to square tiles (resize_dataset.ipynb)
* divide original image to square sections
* for every section find similar tile, but watch out for neighbours - we don't want to have 2 identical tiles next to each other (parametar n_neighbours)
* the similarity is calculated with KMeans algorithm (both for dataset tiles and original image sections)
* construct the result image from the dataset tiles following the previous logic
Original image
Mosaic image (construced with pigs pictures dataset :D)
- Credits