NPM NodeJS Package

Now, you can use iApp AI API service with NPM (Node Package Manager). It is the api client library for iApp AI API service for Javascript and NodeJS.

Installation

$ npm install iapp_ai_api

Note: This environment is using node 12+ or node 17

Example Usages

const iapp_ai = require("iapp_ai")
const api = new iapp_ai("{Your API Key}");

async function test(){
    const ret = await api.idcardFront_Ocr("media/id-card-front.jpg");
    console.log(ret)
}
test()

// output:

// address: '23/20 หมู่ที่ 6 ต.กะทู้ อ.กะทู้ จ.ภูเก็ต',
// detection_score: 0.9768817325433095,
// district: 'กะทู้',
// en_dob: '11 Mar 1965',
// en_expire: '10 Mar 2012',
// en_fname: 'Phensiri',
// en_init: 'Mrs.',
// en_issue: '10 Jan 2006',
// en_lname: 'Pitikorckul',
// en_name: 'Mrs Phensiri  Pitikorckul',
// error_message: '',

More on Example Usage: https://github.com/iapp-technology/iapp_ai_nodejs/blob/main/example/index.js

Last updated