Introducing VIDA Identity Stack: All of VIDA, in one place 🎉
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Document Capture Guidelines

Image Specification

Prior to performing document checks or character recognition, the VIDA Document Verification or OCR system undergoes image pre-processing to ensure optimal text recognition accuracy and document verification. This includes evaluating the image size and resolution to meet specific requirements. The system checks that the Card object within the image has dimensions greater than or equal to 400 x 300 pixels (width x height). Additionally, the file size of the image should not exceed 2 MB.

Image Setting
Requirements

Minimum camera pixel

Above 2 MP

Image file size

Minimum size: 100 KB Maximum size: 2 MB

Image compression recommendation

Bicubic, with minimum JPEG quality 80%

Image Dimension

Minimum Dimension: 300 x 400 px Maximum Dimension: 4000 x 3000 px

Coverage

The ID document image should occupy at least 80% of the entire image.

Supported Image Formats

JPG/JPEG/PNG

To ensure accurate Document Verification and OCR extraction from ID document images, please refer to the guidelines provided in the below Key Image Quality Recommendations section.

Key Image Quality Recommendations for Document Capture

Horizontal Orientation

OCR data extraction and the Document Verification is specifically designed to recognize text that is horizontally oriented on the ID Document. To ensure accurate extraction of data, it is important that the document image is horizontally aligned and not rotated.

Ideal KTP Image

Device Orientation

In the VIDA OCR system, OCR data extraction is optimized to recognize text on the ID Document. To ensure accurate extraction of data, it is crucial that the document image is horizontally aligned, while the device camera orientation should be portrait.

Proper Document Positioning

For optimal Document Verification and OCR data extraction, it is crucial to have a well-positioned document image where the ID Document object is clear and easily recognisable. If the ID Document within the image is too distant or unclear, it can adversely affect the system's ability to accurately detect and extract the text, potentially leading to errors in data extraction.

Adequate Lighting

In order to achieve accurate text recognition, it is essential to capture document images in adequate lighting conditions. Low lighting conditions can pose challenges for the Document Verification and OCR system to accurately recognize text. Therefore, it is highly recommended to capture document images in good lighting conditions to ensure clear and easily recognizable text.

Avoid Glare

Glare on the document can interfere with text recognition and lead to errors in data extraction. It is important to avoid glare by taking the document image in an environment with minimal light reflection.

KTP CARD Illustration - Avoid Glare
Passport Illustration - Avoid Glare

Avoid Defects

Defects in the document image, such as folds, creases, or stains, can interfere with Document Verification and OCR text recognition and lead to errors in data extraction. It is recommended to ensure that the document is clean and free of any defects before scanning or taking the image.

KTP CARD Illustration - Avoid Defects
Passport Illustration - Avoid Defects

Avoid Blur

A blurry image can disrupt the Document Verification and OCR process and result in errors. Prevent blur by holding your device stable while capturing, using auto-focus, and ensuring the image resolution is high.

Image Too Far

Ensuring the correct distance while capturing the image is important. The ID Document needs to be clearly visible and fill a significant portion of the image frame for the Document Verification and OCR system to accurately detect and extract the text.

The ID Document should occupy at least 80% of the entire captured image.

Avoid Cropped Area

A cropped image can disrupt Document Verification and OCR performance and result in the wrong character recognition. The ID Document needs to be clearly visible. If some text areas are cropped, the OCR can not recognize the whole character.

Illustration - Avoid KTP Card Getting Cropped
Illustration - Avoid Passport Getting Cropped

Avoid ID Card without background or padding

A full-frame image with no padding makes it difficult for the system to detect the ID document properly. Ensure the ID is captured with some space around its edges to improve verification and spoof-detection accuracy.

Illustration - Avoid ID Card without background or padding

Image Condition and Recommendation

Image Condition
Recommendation

Ideal Condition

  • Original KTP, not a copy or screen

  • All 4 corners visible, not cropped

  • Sharp text (no blur or motion)

  • Well lit, no glare or heavy shadows

  • Straight and centered in the frame

The Image is rotated and should be avoided

Capture the image in a horizontal position

The image is too far and should be avoided

Capture the image from a closer distance or zoom in.

The image has defects and should be avoided

Ensure the ID Document is free of defects before capturing the image.

The image is captured in low lighting and should be avoided

Ensure adequate lighting is present to properly illuminate the ID Document.

The image has glare and should be avoided

Position the ID Document and camera to avoid direct light reflection

Last updated