Skip to main content

moving time lapse

Project description

mtl (moving time-lapse) is a python tool to create time lapse animation from photos taken not from a fixed camera (hence ‘moving’) with identifiable markers.

mtl align time series photos with markers (3 or 4 markers) provided as .TPS file (digitized with TPSDig software), and output the aligned photos and time-lapse movie.

requires

mtl is based on OpenCV’s implementation of affine transformation (with 3 markers provided) and perspective transformation (with 4 markers provided). A nice explanation on the transformation methods can be found here.

Output of time-lapse video is based on ffmpeg. To use mtl, both OpenCV and ffmpeg are required.

how to use?

  1. Use as a python package.

  2. Directly use the mtl.py python module, if you prefer. Download the file.

mtl can be directly used as command line script, with the following arguments:

-h, --help

show this help message and exit

-t, --tps

path to tps file containing landmarks for alignments

-i, --img

path to the directory containing images to be aligned

-s, --sep

separator between individual and time in image name. NOTE: use single quote (’) for special character in Unix systems

Alternatively, mtl can be imported into python:

>>> from mtl import align

The main function of mtl is align, which provides more options. For further details run:

>>> help(align)

preparing images and markers file

mtl supports batch processing of multiple time series photos. Different time series (such as ‘individuals’) and time points should be indicated in the file name of the images. For examples, 1-1.tif, 1-2.tif, …, 1-100.tif and a-1.tif, a-2.tif, …, a-100.tif will be processed as two different time series of ‘1’ and ‘a’ with time points of 1, 2, …, 100. These images should be placed in a single directory. A dash ‘-’ is used to separate the time series and time points here so this should be instructed to the program. Only a single .TPS file is required for processing multiple time series photos, and it should contains markers for all images in the directory to be processed.

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

mtl-0.0.1.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file mtl-0.0.1.tar.gz.

File metadata

  • Download URL: mtl-0.0.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mtl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7e20c1b064dfb1103d9c76a900b7c49171c8edb9f313d3d3a0e70d08d25c6d2b
MD5 058715fdeb717b3995ab025e7fe5a5fd
BLAKE2b-256 b7e2f23ff53c7eb8a567371ab0984f46d6bbd36e204bb1cdc2dc3c602fc2d8b8

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