post https://api.verihubs.com/v1/ktp/id/extract
Synchronous Extract KTP method helps you to recognize text in KTP image by blocking calls that do not return until either the processed has been completed or there has been an error.
You will receive a response consists of message and an error code if the request fails to process. The following is a list of error codes.
Error code | Description |
---|---|
INVALID_PAYLOAD | No value in payload or empty string more than 1 |
INVALID_PAYLOAD_IMAGE_MISSING | Image empty string |
INVALID_PAYLOAD_IMAGE_SIZE | Image size too big/too small |
INVALID_PAYLOAD_IMAGE_FORMAT | Image unable to be decoded/got from url OR invalid image extension |
MISSING_PAYLOAD_IMAGE | Missing payload image |
KTP_NOT_DETECTED | KTP not detected from image |
INVALID_PAYLOAD_QUALITY_VALIDATION_DEPENDENCY | is_quality must be true if validate_quality true |
INSUFFICIENT_QUOTA | Quota for extract/quality is not sufficient to further continue the request (only appears on testing mode) |
FAIL_ON_1 | Fail on quality |
INTERNAL_SERVER_ERROR | Internal server error |