Open csa8280 opened 9 months ago
@csa8280 There is no margin below the last staff.
In the HEADERS step, the engine searches for key elements in a buffer that goes from 2 spaces above the staff to 1 space below. In your case, that means looking beyond the confines of the image. Hence the exception.
I will try to ruggerdize the engine code to deal with such situations. (The same problem will occur in the HEADS step, when searching for note heads just below the last staff line...)
For now, the best "solution" would be to put some margin around your score image.
Bug fixed today by commit 94370470d43badc5d0af8196f406130fafd03759 on "development" branch.
Note however that Tesseract chokes on this input image (error code: -1), hence no OCR result is available here. I could not find a way to make it work, even by adding substantial white margins around the buffer submitted to Tesseract.
Perhaps because the input image is awfully long: about 40_000 pixels wide by 462 pixels high. My workaround: I scaled down the input image by half. This both reduced the transcription duration significantly and made Tesseract work.
the error is painful and it is still there. adding some margins helped. (the flatpak version of audiveris downloaded yesterday)
@wlodr The flatpak version was published end of 2023, IIRC. Flatpak version is still in beta, and is meant to be aligned with standard releases. In other words, the bugfix (pushed on development branch on January 23) is more recent than the Flatpak content.
score Img: