# Image Requirements

## Minimum Requirement for Image File

1. Document should be fully inside the image;
2. Document should take 70 - 80% of the image area;
3. Document should not be stuck to image edges;
4. Image should be in focus in the document area;
5. There should be no glares or significant shadow on the document;
6. The background should be as contrast as possible, avoid capturing white on white, and dark on dark;
7. Resolution should be at least 200 PPI (300 PPI is recommended) for correct OCR (for ID1 86x54 mm taking \~80% of the image area, image size should be at least 900x600);
8. Supported formats are: JPG, JPEG, PNG, BMP, GIF, TIFF, TIF
9. Max Request Size: 20mb

{% hint style="warning" %}
Submitted image need to reach the minimum requirement threshold to get a better accuracy result.
{% endhint %}

## Image Quality Requirements

Below are the requirements for size and quality of document images captured by any device, which are necessary for accurate return of results by OkayID:

* **Good lighting**

  Good lighting helps to achieve better results. If the image is too dark or too bright, the document can not be processed.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FnLyFn6LVtsvc813v3K46%2F1.JPG?alt=media\&token=5d3b07d0-b1c7-411c-b22a-2ba3c8b1c3b8)

* **Avoid reflections**

  Glares and reflections interfere with processing and reduce data extraction accuracy. We recommend **not to use** the flash of your mobile device when capturing document images.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FVZkTRU1ZA8r388DMxyF1%2F2.JPG?alt=media\&token=bde8b23e-7c1c-400a-942f-8ae7f9670a06)

* **Focus and sharpness**

  Make sure the image is clear and there are no blurred areas.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2F7H5zs7Z6zlSS9JbDYpsE%2F3.JPG?alt=media\&token=7011a7e7-e6c6-47c7-8a1b-dbc584136170)

* **Angle**

  The tilt angle of the document should not exceed 10 degrees in any direction (horizontal or vertical).

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2Fy5tpddNHyrXTxOkAQkTC%2F4.JPG?alt=media\&token=3d58d36f-3fe3-4ed0-9c54-e2516cd4337f)

* **Margins (too small)**

  Make sure there is minimal space around the document. It is recommended that the document takes up 70-80% of the image.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FE8uol13JawTdgBncXbSY%2F5.JPG?alt=media\&token=8840ce3f-4d73-40da-a92a-77182d995e37)

* **Margins (too big)**

  Make sure the space around the document does not take up more than 20-30% of the image. It is recommended that the document takes up 70-80% of the image.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FkaisLFzwj7TMx2IVqeGA%2F6.JPG?alt=media\&token=8dca3943-90da-43f2-9c52-ed5a50177751)

* **Contrast**

  The document should be in clear contrast to the background. A light-colored document on a light background, as well as a dark-colored document on a dark background, cannot be recognized.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FcLtJbrhaRQTpR12kjHIq%2F7.JPG?alt=media\&token=e05e2fb3-b6e4-4d7b-9d43-05b30ca0db45)

* **Resolution of the image**

  To achieve a good quality of recognition of identification documents, we recommend that you provide images captured by a camera with a resolution of at least Full HD (1920×1080) and autofocus.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FAi9kG7zzmFoUNOOc81Zd%2FCapture.JPG?alt=media\&token=c5ef8531-06cb-4527-9bf4-0b52c6189c45)

* **Extraneous objects**

  Make sure your hands or other objects do not cover document data.

![](https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FkdbDpfgvxOC6KHqxo4wz%2F8.JPG?alt=media\&token=e8546bea-7328-4071-8dc3-a795a493fb16)
