Document Extraction
Sub-module for scanning and extracting (OCR) the text present on the KYC documents of the consumer, partner or business.
Scan & Extract
Important Security Update
Please Note: The URL provided should have one of the following extensions:
- .jpeg
- .png
- .jpg
Apart from having the correct extension, we check the MIME Type as well as the content if it corresponds to the permissible types.
Businesses can integrate with Decentro to extract information from a customer’s standard KYC document images as well as validate the same using the Validate APIs. The major benefit of this offering is that customers do not have to enter any information and business can just pre-fill the information from the document.
Decentro powers 2 flows here.
* Scan: This flow allows businesses to extract information from standard ID documents
* Scan & Verify: This flow allows businesses to extract information from standard ID documents as well as verify the same from the associated public repository
Documents Supported for OCR
Decentro supports the following documents for OCR:
- PAN
- Aadhaar
- Driving License
- Voter ID
Document Type Enumeration Standardized
In the request body, "document_type" parameter will only consider capital letters.
The special character's are not allowed -!@#$%^&*()~{}|<>,.:;"'?/+=
Accepted Enumeration Examples -
- PAN
- DRIVING_LICENSE
Not Accepted Enumeration Examples -
- pan
- Driving_License
Except for Aadhaar, all the documents mentioned above are supported in the Scan and Verify flow as well.
The platform using this API can configure the flows at an API level by setting kyc_validate = 1 in the API's request body.
Currently, we support the following states for Driving License OCR:
- Delhi
- Karnataka
- Madhya Pradesh
- Rajasthan
- Punjab
- Bihar
Document Formats Supported for OCR
- JPEG
- PNG
- JPG
- PDF (1 Pager)
Scan & Extract Response Keys (OCR)
The below mentioned response keys will be passed as part of the OCR API.
Response Key | Scenario |
---|---|
error_empty_request_body | An empty request body was passed |
error_invalid_file_size | The file size is greater than 6 MB |
error_empty_file_name | An empty or unsupported file name was passed |
error_invalid_file_format | The invalid file format was passed |
error_empty_document_url | Empty document or document url was passed |
error_empty_reference_id | Empty reference id was passed |
error_empty_document_id | Empty document id type was was passed |
error_invalid_document_id | Invalid document id type was passed |
error_empty_consent | Empty consent was passed |
error_invalid_consent | Invalid consent was passed |
error_invalid_kyc_validate | Invalid kyc validate value was passed |
error_invalid_document_url | Invalid document or document url was passed |
success_ocr | OCR was completed successfully |
success_ocr_initiated | OCR transaction was initiated successfully |
success_pan_ocr | OCR for PAN was successful |
success_voterid_ocr | OCR for Voter ID was successful |
success_dl_ocr | OCR for DL was successful |
success_aadhaar_ocr | OCR for Aadhaar was successful |
success_passport_ocr | OCR for Passport was successful |
Updated about 2 months ago