Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

menpo

PyPI Release BSD License CI Code style: ruff

Menpo. The Menpo Project Python package for handling annotated data.

What is Menpo?

Menpo is a Menpo Project package designed from the ground up to make importing, manipulating and visualizing image and mesh data as simple as possible. In particular, we focus on annotated data which is common within the fields of Machine Learning and Computer Vision. All core types are Landmarkable and visualizing these landmarks is very simple. Since landmarks are first class citizens within Menpo, it makes tasks like masking images, cropping images inside landmarks and aligning images very simple.

Menpo were facial armours which covered all or part of the face and provided a way to secure the top-heavy kabuto (helmet). The Shinobi-no-o (chin cord) of the kabuto would be tied under the chin of the menpo. There were small hooks called ori-kugi or posts called odome located on various places to help secure the kabuto's chin cord.

--- Wikipedia, Menpo

Installation

Here in the Menpo Team, we are firm believers in making installation as simple as possible. Unfortunately, we are a complex project that relies on satisfying a number of complex 3rd party library dependencies. The default Python packing environment does not make this an easy task. Therefore, we evangelise the use of the conda ecosystem, provided by Anaconda. In order to make things as simple as possible, we suggest that you use conda too! To try and persuade you, go to the Menpo website to find installation instructions for all major platforms.

If you feel strongly about using Menpo with the most commonly used Python package management system, pip, then you should be able to install Menpo as follows:

> pip install menpo

We strongly advocate the use of conda which does not require compilation for installing Menpo or it's dependencies such as Numpy, SciPy or Matplotlib. Installation via conda is as simple as

> conda install -c conda-forge menpo

Menpo requires Python 3.10 or newer. Optional extras: pip install "menpo[imageio,opencv]" (cyvlfeat has to be installed separately, e.g. from conda-forge).

Usage

Menpo makes extensive use of Jupyter Notebooks to explain functionality of the package. These Notebooks are hosted in the menpo/menpo-notebooks repository. We strongly suggest that after installation you:

  1. Download the latest version of the notebooks
  2. Conda install Jupyter notebook and IPython: conda install jupyter ipython notebook
  3. Run jupyter notebook
  4. Play around with the notebooks.

Want to get a feel for Menpo without installing anything? You can browse the notebooks straight from the menpo website.

Other Menpo projects

Menpo is designed to be a core library for implementing algorithms within the Machine Learning and Computer Vision fields. For example, we have developed a number of more specific libraries that rely on the core components of Menpo:

  • menpofit: Implementations of state-of-the-art deformable modelling algorithms including Active Appearance Models, Constrained Local Models and the Supervised Descent Method.
  • menpo3d: Useful tools for handling 3D mesh data including visualization and an OpenGL rasterizer. The requirements of this package are complex and really benefit from the use of conda!
  • menpodetect: A package that wraps existing sources of object detection. The core project is under a BSD license, but since other projects are wrapped, they may not be compatible with this BSD license. Therefore, we urge caution be taken when interacting with this library for non-academic purposes.

Documentation

See our documentation on ReadTheDocs

Testing

We use pytest for unit tests.

With uv installed, running

>> uv run pytest

from the top of the repository will set up an environment and run all of the unit tests. Linting is uv run ruff check ., uv run ruff format --check . and uv run mypy menpo.

Some small parts of Menpo are only available if the user has some optional dependency installed. These are:

  • 3D viewing methods, only available if menpo3d is installed
  • menpo.feature.dsift only available if cyvlfeat is installed
  • Some warping unit tests are only available if opencv is installed

Releasing

Versions come from git tags (via setuptools-scm). To release, tag the commit on master (git tag -a v0.12.0 -m "menpo 0.12.0" && git push origin v0.12.0) and approve the pypi deployment on the resulting Release workflow run. The workflow builds the sdist and wheel, uploads them to PyPI with trusted publishing (no tokens) and creates a GitHub release. A manual run of the workflow with publish: testpypi is a dry run. The conda-forge feedstock picks up the new PyPI release automatically.

Metadata

Release files for menpo 0.12.0.dev0

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

Source distribution (sdist)

Source distribution for menpo 0.12.0.dev0
File Size Uploaded Provenance Actions
menpo-0.12.0.dev0.tar.gz 1.8 MB With provenance Details for menpo-0.12.0.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for menpo 0.12.0.dev0
File Interpreter ABI Platform Actions
menpo-0.12.0.dev0-py3-none-any.whl Python 3 none any Details for menpo-0.12.0.dev0-py3-none-any.whl

Total release size: 3.4 MB

Release files / menpo-0.12.0.dev0.tar.gz

Download URL menpo-0.12.0.dev0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f474e2a4a20eb397045d5f9a8c2edb57f465855a88901e69093324d4ca15fd6c
BLAKE2b-256 checksum
How to use checksums
e48ad010b4c129e8edd68789271a4b136d91fca9b340d3684c45cc373dbca491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / menpo-0.12.0.dev0-py3-none-any.whl

Download URL menpo-0.12.0.dev0-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6270b21e17affa0aaffcb751c2e044275af3eea7bb26f19a06edd18b78f7caa5
BLAKE2b-256 checksum
How to use checksums
22cf2e9caa63898152289f0ad899c4a5249040a2f05f98d98af50f5167609a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for menpo 0.12.0.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for menpo-0.12.0.dev0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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