Skip to main content

CLI tool for face alignment and timelapse generation using MediaPipe Face Landmarker.

Project description

facelapse

Homer Simpson timelapse

PyPI version Python versions License

A CLI tool for facial image alignment and timelapse generation using MediaPipe's Face Landmarker. Can be used to generate timelapse videos and datasets of aligned faces.

Installation

Using pip:

pip install facelapse

Or run it directly as a tool with uv:

uvx facelapse -i <input_folder> [options]

Usage

facelapse -i <input_folder> [options]

Options:

  • -i, --input: Input folder containing images to process. Files are processed in natural filename order.
  • -o, --output: Output folder (default: output).
  • --model-path: Optional path to a custom MediaPipe .task model file (default: uses built-in model).
  • --width: Width of aligned output images (default: 512).
  • --height: Height of aligned output images (default: 512).
  • --fps: Timelapse frame rate (default: 24.0).
  • --skip-video: Skip timelapse video generation.
  • --save-aligned-images: Save aligned and cropped face images to output/aligned (default: off).
  • --blend-steps: Number of interpolated frames to insert between images in the timelapse video (default: 0).
  • --video-crop-mode: Crop strategy for stitched video.
    • tight: crops to area valid for all frames (smallest, no extrapolation).
    • balanced: crops to area valid for the 90th percentile of frames.
    • canvas: no crop, preserves each frame's entire canvas (may use border extrapolation).

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

facelapse-0.1.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

facelapse-0.1.0-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: facelapse-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for facelapse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4be306c0df04e96bb7dd1dbab23eef0f2f221c25fab4e2bbd5e7da957fd47e2a
MD5 c989cd49a097d2a21898e8dc8780ce33
BLAKE2b-256 4b9bbb3b16df61ea791e688111491c560f21bdc61e91f2867a4311976ae78e15

See more details on using hashes here.

File details

Details for the file facelapse-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: facelapse-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for facelapse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 273641ffe79cbaedfc52efae4ce35e65506a6a5012b36044ab38cb0ddd7869a3
MD5 e2a4e3ce74c9a2196406d2434e86a899
BLAKE2b-256 aacbfb068482ad0fd0b9ff87ecaba116d5b56215ac9fd4c3cfaf3fe5f70f5f52

See more details on using hashes here.

Supported by

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