Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cinemast/openmosaic
python implementation of a photo mosaic software
https://github.com/cinemast/openmosaic
Last synced: about 1 month ago
JSON representation
python implementation of a photo mosaic software
- Host: GitHub
- URL: https://github.com/cinemast/openmosaic
- Owner: cinemast
- License: gpl-3.0
- Created: 2015-06-23T19:23:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T14:05:55.000Z (over 7 years ago)
- Last Synced: 2024-05-01T13:39:30.697Z (8 months ago)
- Language: Python
- Size: 6.78 MB
- Stars: 30
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OpenMosaic
==========This software enables the creation of photo mosaics, based on image retrieval
techniques.For feature extraction, the *RGB* as well as the *HSV* average colors in the image
are retrieved and added to a index.Requirements
------------Python 2.x, Python OpenCV bindings, numpy
On debian based systems, you can simply type
```sh
sudo apt-get install python python-numpy python-opencv
```How to run
----------- Clone this repo, or download the tarball.
- Create a directory called `images`
- Put your library for the mosaic images there. An example image set can be found [here](http://lear.inrialpes.fr/~jegou/data.php)
- Run `python Indexer.py` (only first time, or on every library update)
- Run `python Stitcher.py inputimage.jpg 20 rgb mymosaic.jpg`This creates an index over the given library and stiches a mosaic with tiles of
the size 20x20 based on the inputimage.jpg.Examples
--------Input:
![input](https://raw.githubusercontent.com/cinemast/OpenMosaic/master/doc/cat.jpg)
20x20, 10x10, 5x5 tiles
![input](https://raw.githubusercontent.com/cinemast/OpenMosaic/master/doc/cat-rgb-20.jpg)
![input](https://raw.githubusercontent.com/cinemast/OpenMosaic/master/doc/cat-rgb-10.jpg)
![input](https://raw.githubusercontent.com/cinemast/OpenMosaic/master/doc/cat-rgb-5.jpg)