| ABBYY Mobile OCR Engine 4 |
Go to: Contents | Guided Tour
One of the main recognition parameters is the language which is used during recognition. It is very important for good quality recognition results to set up the languages of a document correctly.
Any function you use for recognition takes a set of languages as an input parameter. In general we recommend not to add too many languages to the set. But, if you are recognizing business cards, adding the English language is highly recommended, even if the business cards are in another language.
ABBYY Mobile OCR Engine includes a set of predefined recognition languages. See the list in Recognition Languages in ABBYY Mobile OCR Engine. Some of these languages have dictionary support. Attaching a dictionary to the recognition language will improve the results' quality, but it is not mandatory if you are using the native library. See Working with Dictionaries for details.
You can also create a custom language which will allow only the words conforming to a specified regular expression. This can be useful if you need to extract some specific data from the images, such as telephone numbers or e-mail addresses, which are easily described by means of a regular expression. See Recognizing with Custom Languages and Working with Regular Expressions.
The description of a recognition language (i.e. its ID, set of characters, etc.) is stored in a pattern file with the extension *.rom.
Important! A pattern file must include all languages that you are going to use for recognition.
If you use only predefined languages, you may choose one of the pattern files which are included in the distribution pack. You can find these files in the data\Patterns folder of the ABBYY Mobile OCR Engine installation folder. This folder contains pattern files for all languages, certain pairs, and groups. You can find the list of available pattern files and the languages they correspond to in the PatternsFilesInfo.txt file in the same folder. If none of the pattern files suits you, or if you are going to use custom languages, you need to create your own pattern file. To create a custom language, please contact support.