Skip to main content

Desktop OMR tool for turning sheet music into annotations, audio, MIDI, and synchronized video.

Project description

PyClef

PyClef is a desktop Optical Music Recognition workflow for turning sheet music into annotated pages, audio, MIDI, and synchronized video.

Usage

from pyclef import Pyclef

Pyclef()

Or from the terminal:

pyclef

Model file

The YOLO model is not included in the PyPI package because it is larger than the default file limits for GitHub and PyPI.

On first processing, PyClef looks for the model in this order:

  1. PYCLEF_MODEL_PATH, if set.
  2. The user cache at ~/.pyclef/models/best.pt.
  3. Automatic download from PYCLEF_MODEL_URL.

By default, PYCLEF_MODEL_URL points to the PyClef GitHub Release asset:

https://github.com/viniciusfs14/PyClef/releases/download/model-v1.0.0/best.pt.zip

Create that release and attach best.pt.zip to make the download automatic for users.

On Windows, you can create the release asset with:

Compress-Archive -Path .\pyclef_app\model\best.pt -DestinationPath .\best.pt.zip -Force

For manual setup, place best.pt here:

~/.pyclef/models/best.pt

Or set PYCLEF_MODEL_PATH to the full path of the model file before starting PyClef.

External requirements

PDF input uses Poppler through pdf2image. On Windows, install Poppler and make sure the path configured in pyclef_app/config.py is available on your machine.

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

pyclef-1.0.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

pyclef-1.0.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file pyclef-1.0.2.tar.gz.

File metadata

  • Download URL: pyclef-1.0.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pyclef-1.0.2.tar.gz
Algorithm Hash digest
SHA256 35a8f00eaf08cab874e208ef6742c1ad51bf2cd95f9d37320bdc328f239c4aa7
MD5 46a17546cf2825c6a5064a1f259c56fa
BLAKE2b-256 c9b75450f5a1b5d91742b979c41a1a4e7c76647b69c0de4a3f9916678482c81f

See more details on using hashes here.

File details

Details for the file pyclef-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyclef-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pyclef-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 189d3f422788ecd96ce11f15f706e05fc08c4449d0be3c82801b5bf1b33a7388
MD5 d847de3f3d60588e2f09a48f50b6c907
BLAKE2b-256 95460198d3843b81bafafa37b8fbde341d6c79aa535f8b10c388578e73120f64

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