# Image Requirements

## Requirements For Images

* Document should be fully inside the image;
* Document should take 70 - 80% of the image area;
* Document should not be stuck to image edges;
* Image should be in focus in the document area;
* There should be no glares or significant shadow on the document;
* The background should be as contrast as possible, avoid capturing white on white, and dark on dark;
* 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);
* Supported formats are: JPG, JPEG, PNG, BMP, GIF, TIFF, TIF
* Max Request Size: 20mb

## Image Quality Requirements

Below are the requirements for size and quality of document images captured by any device, which are necessary for successful image processing 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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-htxwn871quhC3a_8J%2F1.JPG?alt=media\&token=fb6d652c-7f53-4e79-9b64-a13c03f773e2)

* **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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-hu7OqrcgXZMVpAKyF%2F2.JPG?alt=media\&token=73d7699f-657a-47b5-9eba-a7ea4eea0b75)

* **Focus and sharpness**

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

![](https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-huCZz969firczHaje%2F3.JPG?alt=media\&token=1c0915c0-134c-47ff-b705-564a01a5f41f)

* **Angle**

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

![](https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-huIX3BrEwdKwVKiiU%2F4.JPG?alt=media\&token=18b68060-3ac5-49d1-b36b-92e423e628b0)

* **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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-huOfVIUyE_yh3X1ma%2F5.JPG?alt=media\&token=64d24a0c-4dd2-4e22-8b05-8e3d22f028ed)

* **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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-huVDEzTPGJpdTBML5%2F6.JPG?alt=media\&token=ea141305-9b4b-4089-90f7-a675804eae7c)

* **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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-hudd6EPhKeQaSsbRV%2F7.JPG?alt=media\&token=5b6441ef-7a8a-44b3-8699-be17ad80d6fe)

* **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://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-nEUtFJHe87hhbNuQN%2F-M-nGI5q0ctc4UhTfW6M%2FCapture.JPG?alt=media\&token=98e2ecba-6575-4e3f-acdf-22baa50d9efb)

* **Extraneous objects**

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

![](https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-hsKnatt3C83ZtVdmr%2F-M-hujof-X7sesUpKMfp%2F8.JPG?alt=media\&token=ef3ef5d0-a147-4c8e-9148-f6d70aaf0a1f)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-old.innov8tif.com/okayid/image-requirements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
