GithubHelp home page GithubHelp logo

kur1977 / web-omr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liuhh02/web-omr

0.0 0.0 0.0 223 KB

Web-based Optical Music Recognition tool that translates musical notes on monophonic scores to ABC notation and annotates the ABC notes onto the music score to facilitate the process of learning music

License: MIT License

Python 35.34% HTML 57.98% Dockerfile 6.68%

web-omr's Introduction

web-omr

Web-based Optical Music Recognition tool that translates musical notes on monophonic scores to ABC notation and annotates the ABC notes onto the music score to facilitate the process of learning music. Sample Result See the full article explaining this project here. This project was created in a 2 day hackathon at YouthHacks 2019.

Getting Started

This web app is developed with Flask on a tensorflow model built by Calvo-Zaragoza et al. published as End-to-End Neural Optical Music Recognition of Monophonic Scores in the Applied Sciences Journal 2018.

To get started, follow the steps below:

  1. Install the following dependencies: tensorflow v1, flask, opencv
  2. Download the semantic model developed by Calvo-Zaragoza et al.
  3. Download the semantic vocabulary
  4. Download the font Aaargh.ttf (this is needed to annotate the image with the ABC notation)

If you would like to train the semantic model yourself, head over to the tensorflow model Github repository for instructions and download the PrIMuS dataset.

Folder Structure

Make sure your folder structure is as follows:

app.py
vocabulary_semantic.txt
Aaargh.ttf
├── Semantic-Model
|   ├── semantic_model.meta
|   └── semantic_model.index
|   └── semantic_model.data-00000-of-00001
├── templates
|   ├── index.html
|   └── result.html
├── static
|   ├── css
|        └── bulma.min.css

Run the Web App!

Once everything has been set up as above, head over to your terminal / command prompt. Change the directory to the directory with your app.py file and run python app.py. Wait for a few seconds and you should receive a message on the link you should go to in order to view the web app. Go to the URL, upload your music sheet and get the result!

The annotated sheet will be saved to the same folder as app.py with the name annotated.png.

Acknowledgements

A huge thanks to Calvo-Zaragoza et al. for building this awesome deep learning model, and for sharing the trained model, dataset and code.

web-omr's People

Contributors

alexandertheturd avatar coolprogrammer000 avatar cscdemo avatar darkmoongreatsword avatar deepsource-autofix[bot] avatar deepsourcebot avatar dhinesh003 avatar fnre avatar fookang avatar ivorkhan avatar justinsmits avatar jxcheh avatar liuhh02 avatar r4draven avatar reevaz21 avatar shixuan2 avatar varnika12 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.