Skip to content

endemwone/photomosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photomosaic Creator

Create your own photomosaic using your own pictures.

mosaic-terminology

To run

To install the modules:

  • Install virtualenv and pip
  • virtualenv env
  • pip install -r requirements.txt

Then whenever you need to run the code, first run:

  • source env/bin/activate

to load the modules.

Place all your source images in a directory, then run python crop_into_squares.py -d <source_images_directory> to convert them into squares. Then run python mosaic.py -i <input_image> -o <output_image> -d <source_images_directory>.

Voila! You got a photomosaic'd version of your input image.

Caching

The program uses caching to speed up the process of calculating the average RGBs of each image. For every new source image added, it appends the RGB value into a JSON file.

Currently there is no mechanism to delete the key of an image that is deleted from the source images directory. So if you have changed the images in a large amount, it is advised to delete the cache JSON file and let the program create it again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages