Closed leeyikkong closed 7 years ago
Hi @leeyikkong,
you can activate multiple recognizers at the same time, for example you can activate MRTDRcognizer together with recognizers for other supported documents. This will significantly slow down the scanning process and try to enable as few recognizers as possible for your use case. If you are scanning side of the ID card where MRZ is placed, probably you will obtain only result from MRTD recognizer, you can enable obtaining of multiple scan results on single image.
Second approach is to use only MRTDRecognizer and check document type by calling getDocumentType method on obtained MRTDRecognitionResult.
The MRTDRecognitionResult is only for Passport, if I have different kind of identity card which I customised by myself, is it has anyway to detect which card is it? or I need to write the condition if I get this data, then it is this card? or if i need to scan different identity card for different country, can I differentiate the card type? thank you.
I think I found the solution already. just declare a static variable to get the result after the scanning. thanks
Hi @leeyikkong,
recognizers produce different result types (each document type has its corresponding result type). When scanning is done, you can use instanceof
operator to check result type - in onScanningDone method if you are performing custom UI integration, or in onActivityResult
method if you are using one of the provided scan activities from the SDK.
Best regards
yes..that is what I did. THanks alot.
Hi,
may I know is it possible to scan the card and it will auto detect which card it is? For example, I call the scanning activity, and during the scanning process, it will auto detect the object that I scanned whether is an identity card or passport. Is that possible??
Thank you.