Skip to content

Commit

Permalink
I can't spell very well
Browse files Browse the repository at this point in the history
  • Loading branch information
worldveil committed Oct 15, 2018
1 parent 3747181 commit f94dd5e
Show file tree
Hide file tree
Showing 26 changed files with 38 additions and 978 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -2,6 +2,6 @@
.DS_Store
media/
.pytest_cache/
emosiac/tests/output/*
emosaic/tests/output/*
.ipynb_checkpoints/
cache/*
14 changes: 7 additions & 7 deletions README.md
@@ -1,12 +1,12 @@
# photomosiac
# photomosaic

Creating photomosiac images & videos.
Creating photomosaic images & videos.

<p align="center">
<img src="media/readme/side-by-side.jpg">
</p>

## What does that mean?
## How does it work?

We're doing the digital equivilent of a very old technique - creating mosaics:

Expand Down Expand Up @@ -54,7 +54,7 @@ sh enter.sh

Finally, and most importantly, get together some photos and videos you'd like to either create images from (use as mosaic tiles) or create mosaics of (turn your photos/videos into mosaics). I took my iPhone photos/videos for the last few years and threw them all in a folder, and you can see some of the cool results below.

## Photomosiac Scripts
## photomosaic Scripts

Note that the default setting for all of these scripts are to use caching, which means once you've indexed a particular folder of photos at a certain scale (read: tile size), you'll never need to do it again.

Expand All @@ -71,7 +71,7 @@ Reconstruct an image using a set of other images, downsized and used as tiles.
```bash
$ python mosaic.py \
--target "media/example/beach.jpg" \
--savepath "media/output/%s-mosiac-scale-%d.jpg" \
--savepath "media/output/%s-mosaic-scale-%d.jpg" \
--codebook-dir "your/codebook/tiles/directory/" \
--scale 8 \
--height-aspect 4 \
Expand All @@ -92,7 +92,7 @@ Arguments:
Example:

<p align="center">
<img src="media/readme/beach-mosiac-scale-8-small.jpg" height="300">
<img src="media/readme/beach-mosaic-scale-8-small.jpg" height="300">
</p>


Expand Down Expand Up @@ -208,7 +208,7 @@ Here are a few other settings that allow you to tweak the visual output.

### 1) Randomness (`--randomness`)

If you'd like to bring a little chaos into your photomosiacs, use the randomness parameter.
If you'd like to bring a little chaos into your photomosaics, use the randomness parameter.

It's a float in the range `[0, 1)` that is the probability a given tile will be filled in, not with the closest tile in the codebook, but rather a completely random one.

Expand Down
73 changes: 0 additions & 73 deletions emosiac/__init__.py

This file was deleted.

108 changes: 0 additions & 108 deletions emosiac/caching.py

This file was deleted.

134 changes: 0 additions & 134 deletions emosiac/image.py

This file was deleted.

Empty file removed emosiac/tests/__init__.py
Empty file.
Empty file removed emosiac/tests/input/.gitkeep
Empty file.
Binary file removed emosiac/tests/input/kiss.png
Binary file not shown.
Empty file removed emosiac/tests/output/.gitkeep
Empty file.
Empty file removed emosiac/tests/utils/__init__.py
Empty file.
13 changes: 0 additions & 13 deletions emosiac/tests/utils/test_fs.py

This file was deleted.

0 comments on commit f94dd5e

Please sign in to comment.