Support multiple selections, separated by commas, for example: images, image_quality, document_forgery |
OCR Image Specifications and Requirements
Requirement Category
Specific Guidelines and Requirements
Document Placement
- Ensure the document is centered in the image, with all four edges clearly visible and not obscured or cropped.
Maintain the original aspect ratio of the document to avoid distortion.
Avoid using non-authentic online samples (such as images found on the internet), blurry photographs, incomplete document edges, or severely distorted images. |
| Image Quality | - Capture the image in an environment with adequate and even lighting, avoiding direct strong light or shadows.
Use a single, preferably light-colored background without complex patterns or textures.
Ensure the test image is clear, without blurriness or overexposure issues. |
| Image Specifications | - The file size of the image should ideally be between 100KB and 500KB to ensure fast upload speeds and efficient processing, while avoiding excessive compression that could degrade recognition quality. |
Examples of Acceptable Pictures:
Examples of Non-acceptable Pictures:
Response Parameter
Parameter
Type
Description
Notes
code
Integer
API status code
message
String
Status information
When the API is in an abnormal state, the specific abnormal reasons are returned
sequence_id
String
Unique response code
To track the unique identification of each request
result
String
Verification result
Enumeration:
success: if document type can be recognized, document is not expired, MRZ (if applicable) is valid and the format of text fields is valid
error: if any one of the above document type, expiry, MRZ and text fields check fails
not performed: checks are not performed |
| status_info | Object | Verification details | Details of above result including verification details of document type, expiry, MRZ and text fields |
| document_type_info | Object | Document type information | Default parameter |
| card_info | Object | ID card information | OCR results for the identification document |
| image_info | Object | Image information | Returned when related input parameter is selected |
| image_quality_info | Object | Image quality information | Returned when related input parameter is selected |
| document_forgery_info | Object | Document forgery detection | Returned when related input parameter is selected |
Data Objects
StatusInfo
Parameter
Type
Description
Notes
doc_type
Integer
Check whether the document type can be correctly identified
Refer to the CheckResult data dictionary
expiry
Integer
Check whether the document has expired
Refer to the CheckResult data dictionary
mrz
Integer
Check whether the MRZ (Machine Readable Zone) is correctly recognized
Refer to the CheckResult data dictionary
text
Integer
Check whether the text format of the fields on the document meets the requirements