Implementation of the paper bellow. Staff line detection can be used to get a grounding in OMR (Optical Music Recognition). It can handle computer generated scores aswell as most handwritten scores.
@article{ su2012,
author = {Bolan Su , Shijian Lu , Umapada Pal and Chew Lim Tan},
title = {An Effective Staff Detection and Removal Technique for Musical Documents},
journal = {2012 10th IAPR International Workshop on Document Analysis Systems},
year = {2012}
}
(Requires OpenCV and Boost libraries).
$ git clone https://github.com/ferasboulala/staff-detect.git
$ cd staff-detect && mkdir bin build
$ cd build && cmake ..
$ cd ../bin && ./stav --help
There are many options to the stav
binary. Just follow the instructions on the screen. For datascience/machine learning practitioners, it is possible to do batch detection of staves. All staves will be store in a convenient xml
format.
Computer generated scores are easy to process. The inputed image is scanned for staff lines. The program detects that staff lines are straight.
The input image is scanned for staff lines. The program detects that there is a curvature to the staff lines. It estimates the staff line model, corrects the curvature and removes staffs.