ABBYY Mobile OCR Engine 4

Go to: Contents | Guided Tour

Recognizing with Custom Languages

To recognize image with a custom language, you need to create a pattern file that contains all recognition languages that you are going to use, and you also have to know the IDs of these recognition languages and the name of the pattern file.

If you need to create a custom language, please contact support.

Why create a custom language

Here are some examples of scenarios in which a custom language improves recognition:

Native library

If you use the FineRecognizeImage, FineRecognizeRegion, and FineRecognizeBusinessCard functions, which work with an image, you need to set up a list of recognition languages (the languages parameter) and a pattern file (the patterns parameter).

Note: The pattern file with custom language should be the first in the patterns parameter.

Each language has a unique ID (type of TLanguageID). If you attempt to use a language without or with a wrong pattern file, the recognition function will return the FEC_InvalidArgument error code.

See also

Working with Regular Expressions