Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aashrafh/mozart

An optical music recognition (OMR) system. Converts sheet music to a machine-readable version.
https://github.com/aashrafh/mozart

mozart music music-sheet music-sheet-reading neural-network omr opencv optical-character-recognition optical-music-recognition reader skimage sklearn

Last synced: about 1 month ago
JSON representation

An optical music recognition (OMR) system. Converts sheet music to a machine-readable version.

Awesome Lists containing this project

README

        



Mozart logo

:notes: Convert sheet music to a machine-readable version.

















---

## 📝 Table of Contents
- [About](#about)
- [Methodology](#methodology)
- [Install](#Install)
- [Technology](#tech)

## 🧐 About
The aim of this project is to develop a sheet music reader. This is called Optical Music Recognition (OMR). Its objective is to convert sheet music to a machine-readable version. We take a simplified version where we convert an image of sheet music to a textual representation that can be further processed to produce midi files or audio files like wav or mp3.



About

## :computer: Methodology

### 1. Noise Filtering and Binarization



Binary Image

### 2. Segmentation



Segment 1



Segment 2


Segment 3

### 3. Staff Line Detection and Removal



No Staff Image 1



No Staff Image 2


No Staff Image 3

### 4. Construct The New Staff Lines



New Staff Image 1



New Staff Image 2


New Staff Image 3

### 5. Symbol Detection and Recognition



Result 1



Result 2


Result 3

## 🏁 Install
1. You can use the attached notebook for quick testing and visualization.
2. You can setup an environment on your local machine to run the project:
1. Install [Conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/)
2. ```conda env create -f requirements.yml```
3. ```conda activate mozart```
4. ```python3 main.py ```

> You can find the dataset on [Google Drive](https://drive.google.com/drive/u/0/folders/1OVGA3CGnEKjyg_k_L8MP2RO5R3oDIbHE).

> Please check the following [issue](https://github.com/aashrafh/Mozart/issues/8) for another ```requirements.yml``` file.

## ⛏️ Built Using
- [Python 3.8.3](https://www.python.org/)
- [NumPy](https://numpy.org/doc/stable/index.html)
- [OpenCV](https://opencv.org/)
- [scikit-learn](https://scikit-learn.org/stable/)
- [scikit-image](https://scikit-image.org/)