Version 1

Supported documents: MyKad front, MyKad back, MyKas, MyPR, MyTentera, Passport

POST https://okayiddemo.innov8tif.com/okayid/api/v4/ocr

Request Body

Name
Type
Description

backImage

string

Back id card image in base64

docTypeEnabled

boolean

Set True to return document type

apiKey

string

To be assigned by Innov8tif

base64ImageString

string

id card/passport image in base64

imageFormat

string

Clarify the image format: jpg, jpeg, png, bmp, gif, tiff, tif

{
    "status": "success",
    "message": "",
    "result": [
        {
            "ListVerifiedFields": {
                "pFieldMaps": [
                    {
                        "wLCID": 0,
                        "FieldType": 17,
                        "wFieldType": 17,
                        "Field_MRZ": null,
                        "Field_Visual": "NO 22 JATAN BB 3/3^NANDAR RUDIT PUCHONG^47000 PUCHONG^SELANGOR",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 71172108,
                        "wFieldType": 12,
                        "Field_MRZ": null,
                        "Field_Visual": "UNKNOWN",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 433,
                        "wFieldType": 433,
                        "Field_MRZ": null,
                        "Field_Visual": "WARGANEGARA",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 25,
                        "wFieldType": 25,
                        "Field_MRZ": null,
                        "Field_Visual": "LIEW HEY LEE",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 2,
                        "wFieldType": 2,
                        "Field_MRZ": null,
                        "Field_Visual": "861200556488",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 363,
                        "wFieldType": 363,
                        "Field_MRZ": null,
                        "Field_Visual": "OTHER",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 57,
                        "wFieldType": 57,
                        "Field_MRZ": null,
                        "Field_Visual": "861200-55-6488-02-02",
                        "Matrix": null
                    }
                ]
            }
        }
    ],
    "documentType": null
}

Input Example

JSON
{
    "base64ImageString": "/9j/4QaMRXh",
    "backImage": "/9j/4QaMRXh",
    "apiKey":"{{apiKey}}",               
    "imageFormat":".jpg",
    "docTypeEnabled":true
}

Last updated