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.1.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.1-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: facelapse-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d5a22c61e2a99547a6d023e092ed3b886a81a5176123c0e44530343b1f1458a0
MD5 ba1edc0be2016dabb29bc6bb01b37b9c
BLAKE2b-256 af830b7c47ee3b3f683ad2723682f74c868a844a0535b6f654c077e38285efb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: facelapse-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0846504a3fa25b7983b041b7de6436cf08c247221062c9133cb74b8793470424
MD5 ebae0f071dc6dfbd452b1f51f2af31ff
BLAKE2b-256 892a523c9abf6744b260b85e937b1d51cec764c304c82f7017f92bf9269d7826

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