Driver License
Text recognition on Indonesian driver's license (SIM).
This service only supports Indonesian driver's license (SIM)
Endpoints
Method | URL |
POST |
|
Headers
Header | Value |
|
|
|
|
Request
The OCR inference time may vary. It depends on many factors, one of them is the image size. We recommend you to resize the image before sending it to Kredibel system.
Field | Type | Description |
image
|
| Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB - Recommended size: 1024x768 |
cardDetect |
| Use card detection model |
passCardDetect |
| If |
flipImage |
| If |
checkFlipImage |
| If |
Response
result
Field | Type | Description |
identityId |
| Identity id |
fullName |
| Full name |
birthPlace |
| Place of birth |
birthDate |
| Date of birth |
gender |
| Gender |
address |
| Address |
occupation |
| Occupation |
expiryDate |
| Expiry date |
information
Field | Type | Description |
---|---|---|
tilt |
| Tilt degree (0-360) on identity card. If it is upside-down, then the value is 180. |
cardDetected | Boolean | Return true if out system detected identity card on the image. |
Errors
Please read this page <Responses & Errors> to know more about response.
Error 4XX
Error Type | Description | Is charged? |
---|---|---|
invalid_base64_encoding | Invalid base64 encoding. | false |
card_not_found | There is no identity card found in the image. This error only raised if you set | true |
text_not_found | There is no text found in the image. | true |
invalid_document_type | The document sent does not appear to be the right identity type. | true |
parsing_failed | System fail to parse identity card. | true |
Error 5XX
For every 5XX http code response, there will be no charge.
Last updated