Git Product home page Git Product logo

Comments (6)

i1E avatar i1E commented on June 1, 2024

Hi @huijing,

you can see all needed modifications from the commits that we made for adding the UAE ID support. Please check diff of this merge commit.

from blinkid-cordova.

huijing avatar huijing commented on June 1, 2024

Are you saying I don't need to make changes to the BlinkIdScanner.java file? And just modify the javascript files as per the commit you linked to? Where do I get the information required for the uae_id_keys.js but for Indonesian IDs?
Sorry, I'm still not very familiar with how BlinkID works yet.

from blinkid-cordova.

i1E avatar i1E commented on June 1, 2024

Hi @huijing,

you have to modify the BlinkIdScanner.java file. It is the main file in which Phonegap wrapper for BlinkID Android is implemented. It is the first file that is shown in the linked diff. To see diff for that file, please click on Load diff (large diffs are not rendered by default).

Results are returned to the JS in JSON format (key-value pairs). When you are returning the results, you can define your own result keys in BlinkIdScanner.java. Use that keys for indonesia_id_keys.js. If you decide to use buildKeyValueResult helper method, you can log keys and use that keys in indonesia_id_keys.js.

from blinkid-cordova.

huijing avatar huijing commented on June 1, 2024

So I also need to add something like:

private JSONObject buildUaeIDBackResult(UnitedArabEmiratesIDBackRecognitionResult res) throws JSONException{
        JSONObject result = buildKeyValueResult(res, RecognizerType.UAE_ID_BACK.resultId);
        putDocumentImageToResultJson(result, UnitedArabEmiratesIDBackRecognitionResult.class);
        putFaceImageToResultJson(result, UnitedArabEmiratesIDBackRecognitionResult.class);
        return result;
    }

but for the IndonesianIDFrontRecognitionResult.class? I apologise but I've never done Java before so this is a bit tricky for me.

from blinkid-cordova.

i1E avatar i1E commented on June 1, 2024

Hi @huijing,

we are planning to add support for the Indonesian ID in the next two weeks. If this is OK for you, and you can wait, you don't need to do it by yourself.

from blinkid-cordova.

huijing avatar huijing commented on June 1, 2024

Okay, thank you for the update. I can close this issue now.

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.