Community

Change language in Java

I am trying to write a simple java application to change the language in Fine Reader OCR. I cannot find any sample code or useful information in the documentation to do it. Can anybody provide me a sample code to switch the language from English to German before OCR a document ( In Java, not C) ?

 

Thanks in advance

Best

Azad

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Hi

    This question has been asked before,
    see: https://forum.ocrsdk.com/thread/arabic-text-recognition/

    It should work with just this one-liner:

    engine.CreateRecognizerParams().SetPredefinedTextLanguage("German");
    or
    engine.CreateRecognizerParams().SetPredefinedTextLanguage("GermanNewSpelling");
    or
    engine.CreateRecognizerParams().SetPredefinedTextLanguage("GermanLuxembourg");

    Edit (2018-01-15)
    An other solution is to add the properties to the IDocumentProcessingParams-object

                IDocumentProcessingParams dpp = engine.CreateDocumentProcessingParams();   
                dpp.getPageProcessingParams().getRecognizerParams().SetPredefinedTextLanguage(language);

    What have you tried so far?

    Regards
    Koen de Leijer

    PS. see one of my other Java-samples here: https://forum.ocrsdk.com/thread/finereader-engine-java-api/

    0

Please sign in to leave a comment.