Giter Site home page Giter Site logo

Back side of US DL about blinkid-cordova HOT 7 OPEN

AlibekJ avatar AlibekJ commented on June 2, 2024
Back side of US DL

from blinkid-cordova.

Comments (7)

mparadina avatar mparadina commented on June 2, 2024 1

Hi @AlibekJ

If you've decided to use the USDL recognizer, I could also suggest using the MBCaptureHighResImage, when it comes to taking the image of the backside of the USDL.

MBCaptureHighResImage can return high-resolution MBImages with capture or still output.

Documentation: http://blinkid.github.io/blinkid-ios/Type%20Definitions.html#/c:MBRecognizerRunnerViewController.h@T@MBCaptureHighResImage

Hope this helps.

Regards,
Milan

from blinkid-cordova.

mparadina avatar mparadina commented on June 2, 2024

Hello @AlibekJ

Can you please tell me which specific data fields are not being returned when using the BlinkID combined recognizer?

Regards,
Milan

from blinkid-cordova.

AlibekJ avatar AlibekJ commented on June 2, 2024

@mparadina

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 fields[USDLKeys.EyeColor] is also valuable.

from blinkid-cordova.

mparadina avatar mparadina commented on June 2, 2024

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,
Milan

from blinkid-cordova.

AlibekJ avatar AlibekJ commented on June 2, 2024

That's right: I can have the back image or the data, but can not have both.
Now when you understand the problem, would appreciate if you could suggest any way of solving this.

Middle name is a critical piece of information.

from blinkid-cordova.

mparadina avatar mparadina commented on June 2, 2024

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,
Milan

from blinkid-cordova.

AlibekJ avatar AlibekJ commented on June 2, 2024

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.
I guess it will have to do until proper solution is found.

  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

from blinkid-cordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.