regulaforensics / DocumentReader-Flutter

Flutter plugin for reading and validation of identification documents
MIT License
29 stars 13 forks source link

How to set language preference to English #4

Closed CherukuriSiva closed 3 years ago

CherukuriSiva commented 3 years ago

Currently, I am getting OCR values in both English and Arabic. If I want to receive response values only in English, is there a way I can set language preference to English

I/flutter (18512): ***********Name******************* Surname and given names
I/flutter (18512): ***********Value******************* Nihaal Cherukuri
I/flutter (18512): ***********Name******************* Surname and given names
I/flutter (18512): ***********Value******************* ىرو ل

Because I am saving the data in HashMap using the above key value pairs. Since keys the same for both Arabic and English... second(Arabic) value is overwriting the first value.

vyakimchik commented 3 years ago

Hello,

Yes, you can receive values with the desired LCID. Take a look at the following page: https://docs.regulaforensics.com/flutter/results/getting-results#getting-values. E.g.: String surnameAndGivenNames = results.getTextFieldValueByType(eVisualFieldType.FT_SURNAME_AND_GIVEN_NAMES, lcid: LCID.LATIN);