-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.ArrayIndexOutOfBoundsException: Index 18479318 out of bounds for length 18479076 #711
Comments
@csa8280 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. 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 9437047 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. |
the error is painful and it is still there. adding some margins helped. |
@wlodr |
score Img:
![123](https://private-user-images.githubusercontent.com/39558580/294641910-a84d1536-0005-4c4e-9a29-ea547c3a8b36.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTY4MDQsIm5iZiI6MTcyNTU5NjUwNCwicGF0aCI6Ii8zOTU1ODU4MC8yOTQ2NDE5MTAtYTg0ZDE1MzYtMDAwNS00YzRlLTlhMjktZWE1NDdjM2E4YjM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA0MjE0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4YTNmNDlhY2EyZDQzODA3MjRkM2Q2ZjE1ZGFkZmFjMDc0NTZlODJkOWQ4M2FmZTFjM2QxODY2ZTIwNzBjZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mH-L6UTRotKKO6YK5V-rPmkF0gpbL3AME8KMgq3Ojok)
The text was updated successfully, but these errors were encountered: