HOME

TheInfoList



OR:

Optical music recognition (OMR) is a field of research that investigates how to computationally read
musical notation Musical notation is any system used to visually represent music. Systems of notation generally represent the elements of a piece of music that are considered important for its performance in the context of a given musical tradition. The proce ...
in documents. The goal of OMR is to teach the computer to read and interpret
sheet music Sheet music is a handwritten or printed form of musical notation that uses musical symbols to indicate the pitches, rhythms, or chords of a song or instrumental musical piece. Like its analogs – printed Book, books or Pamphlet, pamphlets ...
and produce a machine-readable version of the written music score. Once captured digitally, the music can be saved in commonly used file formats, e.g.
MIDI Musical Instrument Digital Interface (; MIDI) is an American-Japanese technical standard that describes a communication protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, ...
(for playback) and
MusicXML MusicXML is an XML-based file format for representing Western musical notation. The format iopen fully documented, and can be freely used under the W3C Community Final Specification Agreement. History MusicXML was invented by Michael Good and ini ...
(for page layout). In the past it has, misleadingly, also been called "music
optical character recognition Optical character recognition or optical character reader (OCR) is the electronics, electronic or machine, mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo ...
". Due to significant differences, this term should no longer be used.


History

Optical music recognition of printed sheet music started in the late 1960s at the
Massachusetts Institute of Technology The Massachusetts Institute of Technology (MIT) is a Private university, private research university in Cambridge, Massachusetts, United States. Established in 1861, MIT has played a significant role in the development of many areas of moder ...
when the first
image scanner An image scanner (often abbreviated to just scanner) is a device that optically scans images, printed text, handwriting, or an object and converts it to a digital image. The most common type of scanner used in the home and the office is the flatbe ...
s became affordable for research institutes. Due to the limited memory of early computers, the first attempts were limited to only a few measures of music. In 1984, a Japanese research group from
Waseda University Waseda University (Japanese: ), abbreviated as or , is a private university, private research university in Shinjuku, Tokyo. Founded in 1882 as the Tōkyō Professional School by Ōkuma Shigenobu, the fifth Prime Minister of Japan, prime ministe ...
developed a specialized robot, called WABOT (WAseda roBOT), which was capable of reading the music sheet in front of it and accompanying a singer on an
electric organ An electric organ, also known as electronic organ, is an electronic keyboard instrument which was derived from the harmonium, pipe organ and theatre organ. Originally designed to imitate their sound, or orchestral sounds, it has since develop ...
. Early research in OMR was conducted by Ichiro Fujinaga, Nicholas Carter, Kia Ng, David Bainbridge, and Tim Bell. These researchers developed many of the techniques that are still being used today. The first commercial OMR application, MIDISCAN (now
SmartScore SmartScore 64 NE is a music OCR and scorewriter program, developed, published and distributed by Musitek Corporation based in Ojai, California. History SmartScore was originally released in 1991 as MIDISCAN for Windows. The product line was la ...
), was released in 1991 by Musitek Corporation. The availability of
smartphone A smartphone is a mobile phone with advanced computing capabilities. It typically has a touchscreen interface, allowing users to access a wide range of applications and services, such as web browsing, email, and social media, as well as multi ...
s with good cameras and sufficient computational power, paved the way to mobile solutions where the user takes a picture with the smartphone and the device directly processes the image.


Relation to other fields

Optical music recognition relates to other fields of research, including
computer vision Computer vision tasks include methods for image sensor, acquiring, Image processing, processing, Image analysis, analyzing, and understanding digital images, and extraction of high-dimensional data from the real world in order to produce numerical ...
, document analysis, and
music information retrieval Music information retrieval (MIR) is the interdisciplinary science of retrieving information from music. Those involved in MIR may have a background in academic musicology, psychoacoustics, psychology, signal processing, informatics, machine lear ...
. It is relevant for practicing musicians and composers that could use OMR systems as a means to enter music into the computer and thus ease the process of composing, transcribing, and editing music. In a library, an OMR system could make music scores searchable and for musicologists it would allow to conduct quantitative musicological studies at scale.


OMR vs. OCR

Optical music recognition has frequently been compared to Optical character recognition. The biggest difference is that music notation is a featural writing system. This means that while the alphabet consists of well-defined primitives (e.g., stems, noteheads, or flags), it is their configuration – how they are placed and arranged on the staff – that determines the semantics and how it should be interpreted. The second major distinction is the fact that while an OCR system does not go beyond recognizing letters and words, an OMR system is expected to also recover the semantics of music: The user expects that the vertical position of a note (graphical concept) is being translated into the pitch (musical concept) by applying the rules of music notation. Notice that there is no proper equivalent in text recognition. By analogy, recovering the music from an image of a music sheet can be as challenging as recovering the
HTML Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
source code In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer. Since a computer, at base, only ...
from the
screenshot A screenshot (also known as screen capture or screen grab) is an analog or digital image that shows the contents of a computer display. A screenshot is created by a (film) camera shooting the screen or the operating system An operating sys ...
of a
website A website (also written as a web site) is any web page whose content is identified by a common domain name and is published on at least one web server. Websites are typically dedicated to a particular topic or purpose, such as news, educatio ...
. The third difference comes from the used character set. Although writing systems like Chinese have extraordinarily complex character sets, the character set of primitives for OMR spans a much greater range of sizes, ranging from tiny elements such as a dot to big elements that potentially span an entire page such as a brace. Some symbols have a nearly unrestricted appearance like slurs, that are only defined as more-or-less smooth curves that may be interrupted anywhere. Finally, music notation involves ubiquitous two-dimensional spatial relationships, whereas text can be read as a one-dimensional stream of information, once the baseline is established.


Approaches to OMR

The process of recognizing music scores is typically broken down into smaller steps that are handled with specialized
pattern recognition Pattern recognition is the task of assigning a class to an observation based on patterns extracted from data. While similar, pattern recognition (PR) is not to be confused with pattern machines (PM) which may possess PR capabilities but their p ...
algorithms. Many competing approaches have been proposed with most of them sharing a pipeline architecture, where each step in this pipeline performs a certain operation, such as detecting and removing staff lines before moving on to the next stage. A common problem with that approach is that errors and artifacts that were made in one stage are propagated through the system and can heavily affect the performance. For example, if the staff line detection stage fails to correctly identify the existence of the music staffs, subsequent steps will probably ignore that region of the image, leading to missing information in the output. Optical music recognition is frequently underestimated due to the seemingly easy nature of the problem: If provided with a perfect scan of typeset music, the visual recognition can be solved with a sequence of fairly simple algorithms, such as projections and template matching. However, the process gets significantly harder for poor scans or handwritten music, which many systems fail to recognize altogether. And even if all symbols would have been detected perfectly, it is still challenging to recover the musical semantics due to ambiguities and frequent violations of the rules of music notation (see the example of Chopin's Nocturne). Donald Byrd and Jakob Simonsen argue that OMR is difficult because modern music notation is extremely complex. Donald Byrd also collected a number of interesting examples as well as extreme examples of music notation that demonstrate the sheer complexity of music notation.


Outputs of OMR systems

Typical applications for OMR systems include the creation of an audible version of the music score (referred to as replayability). A common way to create such a version is by generating a
MIDI Musical Instrument Digital Interface (; MIDI) is an American-Japanese technical standard that describes a communication protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, ...
file, which can be synthesised into an audio file. MIDI files, though, are not capable of storing engraving information (how the notes were laid out) or
enharmonic In music, two written notes have enharmonic equivalence if they produce the same pitch but are notated differently. Similarly, written intervals, chords, or key signatures are considered enharmonic if they represent identical pitches that ar ...
spelling. If the music scores are recognized with the goal of human readability (referred to as reprintability), the structured encoding has to be recovered, which includes precise information on the layout and engraving. Suitable formats to store this information include MEI and
MusicXML MusicXML is an XML-based file format for representing Western musical notation. The format iopen fully documented, and can be freely used under the W3C Community Final Specification Agreement. History MusicXML was invented by Michael Good and ini ...
. Apart from those two applications, it might also be interesting to just extract metadata from the image or enable searching. In contrast to the first two applications, a lower level of comprehension of the music score might be sufficient to perform these tasks.


General framework (2001)

In 2001, David Bainbridge and Tim Bell published their work on the challenges of OMR, where they reviewed previous research and extracted a general framework for OMR. Their framework has been used by many systems developed after 2001. The framework has four distinct stages with a heavy emphasis on the visual detection of objects. They noticed that the reconstruction of the musical semantics was often omitted from published articles because the used operations were specific to the output format.


Refined framework (2012)

In 2012, Ana Rebelo et al. surveyed techniques for optical music recognition. They categorized the published research and refined the OMR pipeline into the four stages: Preprocessing, Music symbols recognition, Musical notation reconstruction and Final representation construction. This framework became the de facto standard for OMR and is still being used today (although sometimes with slightly different terminology). For each block, they give an overview of techniques that are used to tackle that problem. This publication is the most cited paper on OMR research as of 2019.


Deep learning (since 2016)

With the advent of
deep learning Deep learning is a subset of machine learning that focuses on utilizing multilayered neural networks to perform tasks such as classification, regression, and representation learning. The field takes inspiration from biological neuroscience a ...
, many computer vision problems have shifted from imperative programming with hand-crafted heuristics and feature engineering towards machine learning. In optical music recognition, the staff processing stage, the music object detection stage, as well as the music notation reconstruction stage have seen successful attempts to solve them with deep learning. Even completely new approaches have been proposed, including solving OMR in an end-to-end fashion with sequence-to-sequence models, that take an image of music scores and directly produce the recognized music in a simplified format.


Notable scientific projects


Staff removal challenge

For systems that were developed before 2016, staff detection and removal posed a significant obstacle. A scientific competition was organized to improve the state of the art and advance the field. Due to excellent results and modern techniques that made the staff removal stage obsolete, this competition was discontinued. However, the freely available CVC-MUSCIMA dataset that was developed for this challenge is still highly relevant for OMR research as it contains 1000 high-quality images of handwritten music scores, transcribed by 50 different musicians. It has been further extended into the MUSCIMA++ dataset, which contains detailed annotations for 140 out of 1000 pages.


SIMSSA

The Single Interface for Music Score Searching and Analysis project (SIMSSA) is probably the largest project that attempts to teach computers to recognize musical scores and make them accessible. Several sub-projects have already been successfully completed, including the Liber Usualis and Cantus Ultimus.


TROMPA

Towards Richer Online Music Public-domain Archives (TROMPA) is an international research project, sponsored by the European Union that investigates how to make public-domain digital music resources more accessible.


Datasets

The development of OMR systems benefits from test datasets of sufficient size and diversity to ensure the system being developed works under various conditions. However, for legal reasons and potential copyright violations, it is challenging to compile and publish such a dataset. The most notable datasets for OMR are referenced and summarized by the OMR Datasets project and include the CVC-MUSCIMA, MUSCIMA++, DeepScores, PrIMuS, HOMUS, and SEILS dataset, as well as the Universal Music Symbol Collection. French company Newzik took a different approach in the development of its OMR technology Maestria, by using random score generation. Using synthetic data helped with avoiding copyright issues and training the artificial intelligence algorithms on musical cases that rarely occur in actual repertoire, ultimately resulting in (according to claims by the company) more accurate music recognition.


Software


Academic and open-source software

Open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
OMR projects vary significantly, from well developed software such as
Audiveris Audiveris is an open source tool for optical music recognition (OMR). It allows a user to import scanned music scores and export them to MusicXML format for use in other applications, e.g. music notation programs or page turning software for ...
, to many projects that have been realized in academia, but only a few of which reached a mature state and have been successfully deployed to users. These systems include: * Aruspix *
Audiveris Audiveris is an open source tool for optical music recognition (OMR). It allows a user to import scanned music scores and export them to MusicXML format for use in other applications, e.g. music notation programs or page turning software for ...
* CANTOR * MusicStaves toolkit for Gamera * DMOS * Oemer * OpenOMR * Rodan


Commercial software

Most of the commercial desktop applications that were developed in the last 20 years have been shut down again due to the lack of commercial success, leaving only a few vendors that are still developing, maintaining, and selling OMR products. Some of these products claim extremely high recognition rates with up to 100% accuracy but fail to disclose how those numbers were obtained, making it nearly impossible to verify them and compare different OMR systems. * capella-scan * FORTE by Forte Notation * MIDI-Connections Scan by Composing & Arranging Systems * NoteScan bundled with Nightingale * Myriad SARL ** OMeR (Optical Music easy Reader) Add-on for Harmony Assistant and Melody Assistant: Myriad Software ** PDFtoMusic Pro * PhotoScore by Neuratron The Light version of PhotoScore is used in
Sibelius Jean Sibelius (; ; born Johan Julius Christian Sibelius; 8 December 186520 September 1957) was a Finnish composer of the late Romantic and early modern periods. He is widely regarded as his country's greatest composer, and his music is often ...
; PhotoScore uses the SharpEye SDK * Scorscan by npcImaging *
SmartScore SmartScore 64 NE is a music OCR and scorewriter program, developed, published and distributed by Musitek Corporation based in Ojai, California. History SmartScore was originally released in 1991 as MIDISCAN for Windows. The product line was la ...
by Musitek. Formerly packaged as "MIDISCAN". (SmartScore Lite has been used in previous versions of Finale). *ScanScore (Also as a bundle with Forte Notation.) * Soundslice PDF/image importer. AI-based OMR system released in beta in September 2022. * Maestria by Newzik. Released in May 2021, Maestria is an example of new-generation OMR technology based on deep learning. The company claims it not only brings better results but also means "it becomes more accurate with each conversion".


Mobile apps

Better cameras and increases in processing power have enabled a range of mobile applications, both on the Google Play Store and the Apple Store. Frequently the focus is on sight-playing (see
sight-reading In music, sight-reading, also called ''a prima vista'' (Italian language, Italian meaning, "at first sight"), is the practice of reading and performing of a piece in a music notation that the performer has not seen or learned before. Sight-singi ...
) – converting the sheet music into sound that is played on the device. * iSeeNotes by Gear Up AB * NotateMe Now by Neuratron * Notation Scanner by Song Zhang * PlayScore 2 by Organum Ltd * SmartScore NoteReader by Musitek * Newzik app


See also

*
Music information retrieval Music information retrieval (MIR) is the interdisciplinary science of retrieving information from music. Those involved in MIR may have a background in academic musicology, psychoacoustics, psychology, signal processing, informatics, machine lear ...
(MIR) is the broader problem of retrieving music information from media including music scores and audio. *
Optical character recognition Optical character recognition or optical character reader (OCR) is the electronics, electronic or machine, mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo ...
(OCR) is the recognition of text which can be applied to
document retrieval Document retrieval is defined as the matching of some stated user query against a set of free-text records. These records could be any type of mainly natural language, unstructured text, such as newspaper articles, real estate records or paragraphs ...
, analogously to OMR and MIR. However, a complete OMR system must faithfully represent text that is present in music scores, so OMR is in fact a superset of OCR.


References


External links


Recording of the ISMIR 2018 tutorial "Optical Music Recognition for Dummies"


* ttps://web.archive.org/web/20131218222736/http://www.informatics.indiana.edu/donbyrd/OMRSystemsTable.html OMR (Optical Music Recognition) Systems Comprehensive table of OMR (Last updated: 30 January 2007). {{commons category-inline , Optical music recognition Music OCR software Musical notation