Image Processing Question(Guidance for Beginner) - Page 1
Forum section: electronics / beginners

author: Karamel
author_rank: Regular Contributor
timestamp: November 01, 2017, 01:01:18 am
content: Hi,I am, currently, dealing with a problem about image processing. I need to recognize musical notes from an image which have musical notes and it is written with computer. (it is at below)I am, unfortunately, freshman and have no idea about solution methods of problem. Could you give any hints to me?Best Regards,Karamel

author: Signal32
author_rank: Frequent Contributor
timestamp: November 01, 2017, 01:20:14 am
content: If you know the exact exact format that the music is in, then you can just hard-code the recognition of every symbol via pixel signatures ... basically you scan the bitmap and identify symbol signatures.The more generic and involved approach is using something like opencv:https://docs.opencv.org/3.2.0/d1/dee/tutorial_moprh_lines_detection.htmlThere is also software that does this ... but I assume you want your own ?https://en.wikipedia.org/wiki/Optical_music_recognition

author: rhb
author_rank: Super Contributor
timestamp: November 01, 2017, 01:27:18 am
content: The first step is to understand musical notation. There are 8 regular notes in each octave of the 12 notes in an equal tempered scale. No accidentals are present, so once you know the key you have all the possible notes.There are two tasks:Determine the key from the sharp symbols at the beginning.Determine the sequence and duration of the notes in that key.It's an interesting problem. There are many possible ways to solve it.Have Fun!

author: drussell
author_rank: Super Contributor
timestamp: November 01, 2017, 04:05:51 am
content: It is not a trivial task to implement properly...My cousin uses Sibelius with the PhotoScore add-on for that task. She has had a full version for years but they also do offer monthly subscriptions which might fit your usage patterns if you don't want to re-invent the wheel yourself.http://www.avid.com/photoscore-and-notateme-litehttp://www.avid.com/sibelius

author: Karamel
author_rank: Regular Contributor
timestamp: November 01, 2017, 09:40:07 pm
content: Thank you for all answers.I am thinking to use OpenCV and C++ language. Okay, after deleting musical portrait, how can I classify what kind of musical notes they are without machine learning(full note, 1/2 note, 1/4 note) and how can I recognize it is C, D, A, B etc.(I am asking ideas, methods, tasks etc.)

author: tedge
author_rank: Newbie
timestamp: December 02, 2019, 09:32:37 pm
content: I use Photoscore it was bundled with Sibelus 6It works very well but expensive.You can download a demo fromhttps://www.neuratron.com/photoscore.htmA free program Musescore is similar to SibeliusThe program is constantly updated with improvementsDocument how to scan a score and import into Musescorehttps://musescore.org/en/node/11125might be of interest.If you have an Apple IpadIn google browser enter ipad scan musicIt will bring up apps and tutorials on youtube.Good LuckFrom tonyLearn Saxophone with the help of computers.learnsax.co.uk/talk

author: Nitrousoxide
author_rank: Regular Contributor
timestamp: December 03, 2019, 06:46:50 am
content: If you don't want to use machine learning. You could probably have a dictionary to compare the minimum mean squared error (MMSE) and select the lowest reported MMSE as a match for each individual note.That would mean you would have to generate a predefined dictionary.You also may find issues with differing quality images, in that case, you could use some morphological processes to improve the quality.