Skip to main content

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.

Release files for mtl 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtl 0.0.1
File Size Uploaded
mtl-0.0.1.tar.gz 8.1 kB Details

Release files / mtl-0.0.1.tar.gz

Download URL mtl-0.0.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7e20c1b064dfb1103d9c76a900b7c49171c8edb9f313d3d3a0e70d08d25c6d2b
BLAKE2b-256 checksum
How to use checksums
b7e2f23ff53c7eb8a567371ab0984f46d6bbd36e204bb1cdc2dc3c602fc2d8b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page