Aspose.OCR for Java does not correctly recognize a Bosnia and Herzegovina identity card.
When the specialized RecognizeIDCard method is used, it does not return usable text from the attached ID card image.
When the same image is processed using the general Recognize method, most of the text is extracted. However, Bosnian/Croatian Latin characters with diacritics, such as Č , Ć , Ž , Š , Đ , č , ć , ž , š , and đ , are missing, incorrectly recognized, or replaced with basic Latin characters.
The issue remains reproducible when:
Language.Bosis explicitly selected.Language.HbsorLanguage.ExtLatinis used.- All Bosnian diacritic characters are explicitly included through
setAllowedCharacters. - The result is saved directly to a UTF-8 text file, ruling out a console encoding problem.
Actual result
RecognizeIDCarddoes not correctly recognize the BiH identity card.Recognizeextracts some text but does not preserve the required Bosnian diacritics.
Expected result
RecognizeIDCard should recognize text from a Bosnia and Herzegovina identity card, and both recognition methods should correctly return all Latin characters with Bosnian diacritics.
kovacevic.jpg (53.1 KB)