I want to create an interactive musical score by opening a .jpg version of the actual score in OF. I would like to be able to detect every bar so I can highlight them sequentially. I guess an answer would be openCV, but the available examples focus on detecting faces. I would like to be able to detect all clefs (in the .jpg I’ve uploaded the clef is a G one, but I’ll be working with C clefs too), as well as all bar lines (vertical lines on the stave). Any help is greatly appreciated.
Here is a sample score I intend to work with.