Skip to main content

Create Mosaics from movie frames

Project description

Pompei
=================

Pompei is a python package and command line utility to generate photo mosaics like this one, made of 1100+ frames of the movie Gladiator (right-click-Show to enlarge):


Pompei is an open-source software originally written by Zulko_ and released under the MIT licence. Everyone is welcome to contribute or ask for support on the Github_ project page.

Installation
--------------

Pompei can be installed by unzipping the source code in one directory and using this command: ::

(sudo) python setup.py install

You can also install it directly from the Python Package Index with this command: ::

(sudo) pip install ez_setup # <- if you don't have it yet
(sudo) pip install pompei

Pompei depends on the Python module MoviePy, which will be installed automatically during Pompei's installation.

How it works
-------------

Pompei extracts frames from a movie (say, one every 5 seconds), then finds which frames match best the different parts of the image to reconstruct. For speed, images comparisons are done by reducing each image to a dozen average pixels (called signature of the image). Then an iterative algorithm ensures that each frame does not occur too many times, so that many different frames are used in the end, and a last processing ensures that frames which are near in time are not too close in the mosaic.

This method is empirical, and you are encouraged to modify it to fit your needs (by redefining function ``find_best_matches``).

Use
-----

Upon installation

pompei -h # <- displays a detailed help
pompei batch_extract movie fps folder resize_factor
pompei extract movie frame_time
pompei mosaic picture rxry folder outfile goal npasses

See for instance examples/gladiator.sh for the script that generated the image above.

You can use also use Pompei as a Python package: see ``example/gladiator.py`` for the Python version of the same example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pompei-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file pompei-0.1.0.tar.gz.

File metadata

  • Download URL: pompei-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pompei-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71af0a8531ce37043d3ca7642b42d0dbb7251fa152373b7f8b9c39e87f565169
MD5 885fc25ca00a1f345344cde2ee56ae82
BLAKE2b-256 708bc54176d6923d039152d71422bce7d412e3f923a9244cc9f09e2d48df8a41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page