OCR KTP
post
https://api.cloud.nodeflux.io
/v1/analytics/ocr-ktp
Get OCR (Optical Character Recognition)

Request Body

Note for image input:
    The maximum allowed image file size is 800 KB per image The image should be represented in base64 data based on a.JPG format. You can use any online jpg-to-base64 encoder to get the base64 data.
    Please provide exactly an image of Identity Card (IC) or known as well as KTP (Kartu Tanda Penduduk).
    Please input KTP photo in landscape orientation.
    For more detail about image configuration please check the page Image Configuration Guideline.
Your request body should follow this format:
Required Field
All Fields
1
{
2
"images": [
3
"{INSERT_JPEG_IMAGE_AS_BASE64_STRING_FOR_KTP}"
4
]
5
}
Copied!
1
{
2
"images": [
3
"{INSERT_JPEG_IMAGE_AS_BASE64_STRING_FOR_KTP}"
4
],
5
"client_ref":"client124"
6
}
Copied!
Key
Type
Details
Compulsory
images
array of a URI base64 image
This parameter containing base64 image JPEG with URI format
Required
client_ref
string
Valid input only alphanumeric with minimum length is 6 digits and the maximum is 128 digits. The client_ref will be returned on the request. The client_ref should be unique.
Optional
Please follow this example:
1
{
2
"images": [
3
"data:image/jpeg;base64,iVB\
4
ORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEU\
5
AAAD///+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8\
6
yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAEl\
7
FTkSuQmCC"
8
]
9
}
Copied!
The base64 encoded jpeg string should follow the data URI scheme format. See below:
data:[<media type>][;base64],<data>
Valid base64 encoded jpeg string example:
data:image/jpeg;base64,iVB ORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEU AAAD///+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8 yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAEl FTkSuQmCC
Last modified 14d ago