Have you tried Audiveris?
https://audiveris.github.io/audiveris/_pages/handbook/
I haven’t tried it but my first thought was to use something like tesseract OCR, and I found this optical music recognition (OMR) project from there.
https://audiveris.github.io/audiveris/_pages/handbook/
I haven’t tried it but my first thought was to use something like tesseract OCR, and I found this optical music recognition (OMR) project from there.