项目作者: tvldz

项目描述 :
Approximate Nearest Neighbor Assisted Generative Collage
高级语言: Python
项目地址: git://github.com/tvldz/annabel.git
创建时间: 2015-04-24T21:51:37Z
项目社区:https://github.com/tvldz/annabel

开源协议:GNU General Public License v2.0

下载


Annabel

Approximate Nearest Neighbor Assisted Generative Collage

About

  1. _ __ __ _ |_ _ |
  2. (_|| || |(_||_)(/_ |
  3. annabel.py
  4. Approximate Nearest Neighbor Assisted Generative Collage
  5. Copyright (C) 2015 Thomas Valadez (@tvldz)
  6. License: GPLv2
  7. Requires
  8. annoy: https://github.com/spotify/annoy
  9. pillow: http://python-pillow.github.io/
  10. annabel.py is a tool for creating generative collages using
  11. approximate nearest neighbor search. Source images are cropped,
  12. processed (as a feature vector of grayscale values) and indexed
  13. into a flat file database using Spotify's annoy library. Source
  14. images, metadata and search indexes are stored in the profiles/
  15. folder. Collages are generated by querying the database of
  16. source images with content from a new image. The algorithm
  17. attempts to recreate the new image with images found in the
  18. database.

Usage

  1. usage: annabel.py [-h] {gather,create,list} ...
  2. positional arguments:
  3. {gather,create,list}
  4. gather create a "profile" of source images from which
  5. collages may be created.
  6. create create a new collage given an image and a profile.
  7. list list the available profiles.
  8. optional arguments:
  9. -h, --help show this help message and exit

Example Output

An image of the moon created from cartoon stills


Marilyn Monroe created from images of the surface of the moon.