-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back side of US DL #131
Comments
Hello @AlibekJ Can you please tell me which specific data fields are not being returned when using the BlinkID combined recognizer? Regards, |
Here are the critical ones let fields = usdlCombinedRecognizer.result.fields;
let USDLKeys = cordova.plugins.BlinkID.UsdlKeys;
middleName = fields[USDLKeys.CustomerMiddleName];
veteran = fields[USDLKeys.Veteran];
ssn = fields[USDLKeys.SocialSecurityNumber];
issuingState = fields[USDLKeys.IssuingJurisdictionName]; But other DL data such as |
Hi @AlibekJ The data fields you've stressed out above are specific fields that are only obtainable by the USDL recognizer. We do not support retrieving the specific fields with the BlinkID recognizer that can only be found on only one set of documents (for example eye color on the USDL), since the BlinkID recognizer is a generic recognizer, which contains a set of fields that are common for generally all types of documents that it currently supports reading. However, it can return both front and back document images. On the other hand, with the USDL recognizer, you can obtain the previously mentioned information, but it can not retrieve the backside image, since it only reads the barcode and extracts the information from it. Hope this was helpful. Regards, |
That's right: I can have the back image or the data, but can not have both. Middle name is a critical piece of information. |
Hi @AlibekJ Apologies for keeping you waiting. If your use-case requires getting the backside image, then we certainly recommend using the BlinkID recognizer. For getting the middle name, currently, it is always displayed along with the last name, so you will need to put together your own parsing logic in order to retrieve it. If your use-case requires obtaining the Issue state, you could obtain it with the ClassInfo.Region method. Like I've said in my previous response, the other data is USDL specific, and for now, you would need to use the USDL recognizer in order to obtain them. Hope this helps. Feel free to ask here or directly at [email protected] in case of any additional questions. Regards, |
This basically reiterates my initial comment: The problem is in the fact that I must choose between having the data or having the back side image. I found a workaround which allows getting a raw image of the back side. let usdlCombinedRecognizer = new cordova.plugins.BlinkID.UsdlCombinedRecognizer();
usdlCombinedRecognizer.returnFaceImage = true;
usdlCombinedRecognizer.returnFullDocumentImage = true;
usdlCombinedRecognizer.allowMultipleResults = true;
var frameGrabber2 = new cordova.plugins.BlinkID.SuccessFrameGrabberRecognizer(usdlCombinedRecognizer);
frameGrabber2.allowMultipleResults = true;
var recognizerCollection = new cordova.plugins.BlinkID.RecognizerCollection([ /*whatever other recognizers you use */ frameGrabber2]);
//US DL data
usdlCombinedRecognizer.result;
//front image
usdlCombinedRecognizer.result.fullDocumentImage
//back image, raw
recognizerCollection.recognizerArray[0].result.successFrame |
Hi @AlibekJ If you've decided to use the USDL recognizer, I could also suggest using the
Documentation: http://blinkid.github.io/blinkid-ios/Type%20Definitions.html#/c:MBRecognizerRunnerViewController.h@T@MBCaptureHighResImage Hope this helps. Regards, |
I am still struggling with capturing the backside of the USDL.
If I use blinkIdCombinedRecognizer, I get front and back images, but not the USDL-specific data fields.
If I use usdlCombinedRecognizer like this:
I get all the data, but not the back image.
I tried using them both like this
However the
blinkIdCombinedRecognizer
picks up the data first andusdlCombinedRecognizer.result
comes back empty, so, again, I get the images but not the data.The text was updated successfully, but these errors were encountered: