Optical music recognition (OMR): how music sheet OCR works
Optical music recognition (OMR) is the music version of OCR: software looks at an image or PDF of sheet music and turns the printed symbols into notes, rhythms, clefs, keys and staves that a computer can play and edit. Ordinary text OCR cannot do this, because the meaning of a note depends on its height on the staff, the clef, the key signature and the rhythm around it. PUJIAN is an online OMR tool: upload a photo, scan or PDF of printed staff notation, and you get a score you can play back, correct and export as MusicXML or MIDI.
Upload a scoreSign up with email3 free pages on sign-up · failed pages are not counted


Why text OCR doesn't work on sheet music
- A note's pitch comes from its vertical position on five lines, read against a clef and a key signature, not from the shape of the symbol alone.
- Rhythm is spread over several symbols: note heads, stems, flags, beams, dots, ties and tuplet numbers all have to be combined.
- Several voices can share one staff, and one instrument can use two staves, as in piano music.
- Every measure has to add up to the time signature, so a single misread symbol affects the whole bar.
What an OMR tool does, step by step
- Finds the staves and systems on the page and works out which staves belong together.
- Detects the symbols: clefs, key and time signatures, note heads, stems, beams, rests, accidentals, ties, slurs, dynamics and text.
- Builds the music from them: pitch from staff position, clef and key; durations from the rhythm symbols; voices and measures that add up.
- Writes the result as a digital score, usually MusicXML (for notation programs) and MIDI (for playback and DAWs).
What OMR handles well, and what it doesn't
| Input | What to expect |
|---|---|
| PDF exported from notation software | Usually the most accurate input: sharp, straight and clean. |
| Flatbed scan of a printed score | Good, as long as the scan is straight and not too light or too dark. |
| Phone photo of a printed page | Good when the page is flat, evenly lit and in focus; curved pages and shadows cause errors. |
| Old engravings and library scans | Often fine, but faded print, small staves and show-through from the other side cause errors. |
| Dense orchestral scores | Possible, but many staves and small print mean more corrections. |
| Handwritten music | Not supported well by PUJIAN. Expect many errors. |
| Guitar tablature, chord charts, numbered notation images | Not supported by PUJIAN's English version. |
Checking an OMR result
No OMR tool is error-free, so the useful question is how quickly you can find and fix the mistakes. PUJIAN plays the result back with the sounding note highlighted, so a wrong pitch or rhythm is easy to hear. Click a note to change it in the online editor, then export.
OMR tools you may come across
There are desktop programs, phone apps and online services for OMR. Audiveris is a free, open-source desktop program. Commercial apps include PlayScore 2, ScanScore and SmartScore, and several notation programs offer PDF import. PUJIAN runs in the browser with nothing to install, and the playback, editor, transposing and part splitting are on the same page. See our comparison page for features and published prices.
Limitations
- PUJIAN reads printed staff notation. Handwritten scores and blurry, skewed or dark photos are recognized poorly.
- Complex orchestral scores with many staves may need manual fixes after recognition.
- Check the result before you use it: play it back and compare with the original.
FAQ
- Is OMR the same as OCR?
- It is the same idea applied to music. Text OCR reads letters; OMR reads musical symbols and also has to work out pitch, rhythm and how staves and voices fit together.
- Can OMR read a photo taken with my phone?
- Yes, if the page is printed, flat, evenly lit and in focus. A scan or an original PDF is still more accurate than a photo.
- What file do I get?
- PUJIAN gives you a score you can play and edit online, and you can export MusicXML, MIDI or PDF (export is part of paid plans and page packs).
- Can it read handwritten sheet music?
- Not reliably. PUJIAN is built for printed staff notation. Handwritten scores usually produce many errors, so we do not recommend them.
- How accurate is the recognition?
- On clean printed scores, most notes are recognized correctly. Handwritten music, blurry or skewed photos and dense orchestral scores give more errors. You can listen to the result and fix wrong notes in the online editor.
- Is PUJIAN free?
- You get 3 free pages when you sign up with your email. Recognition and playback work on the free pages. Exporting MusicXML or MIDI, the online editor, part splitting and vocal separation are included in paid plans and page packs (from $4.99 for 20 pages). Payments are processed by Creem.