liebharc/homr
homr is an Optical Music Recognition (OMR) software designed to transform camera pictures of sheet music into machine-readable MusicXML format.
What it solves
homr converts images or PDFs of sheet music into machine-readable MusicXML files. This allows users to digitize physical or scanned musical scores so they can be edited or played back in software like MuseScore.
How it works
homr uses a multi-stage pipeline to interpret musical notation:
- Segmentation: It uses UNet-based models to identify structural elements like staff lines, note heads, rests, and clefs.
- Staff Reconstruction: It detects staff anchors and estimates unit sizes to reconstruct the staff structure, even if the image has perspective distortion.
- Symbol Recognition: It uses a transformer-based model to recognize the sequence of musical symbols, including pitch, rhythm, and articulation marks.
- Output: It compiles these findings into a standard MusicXML file, adding rough positional comments to help users locate symbols in the original image.
Who it’s for
homr is for musicians, researchers, and developers who need to convert static sheet music images into digital formats for further processing, analysis, or playback.
Highlights
- Supports processing of both single images and multiple files.
- Offers flexible installation options for CPU, NVIDIA CUDA, or AMD ROCm hardware.
- Provides an online demo and Google Colab notebook for quick testing.
- Integrates with standard music software like MuseScore for post-processing.
- Uses established segmentation and transformer architectures to handle complex musical notation.
Related
- Project
- Project
- Project
- Project
- Project