> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/docker/id-scan-and-ocr-multi-language-support.md).

# ID Scan & OCR (Multi Language Support)

{% embed url="<https://drive.google.com/file/d/1vMO7PSQDOfrEWh7RCfysGtHfyOmivE0z/view?usp=sharing>" %}

### Steps to Install and Run the OCR Docker

#### Step 1:

Pull AccuraOcr Docker image using the command `docker pull accurascan/ocr:<latest  tag>`

Visit <https://hub.docker.com/r/accurascan/ocr> to check the latest version available<br>

```
docker pull accurascan/ocr:36.0.0
```

#### Step 2:

Run the docker by using the command: `sudo docker run -dp port-you-want-accuraocr-to-run-on:443 -- restart=always accurascan/ocr:<latest tag>`

```
docker run -dp 8448:443 --restart=always
accurascan/ocr:36.0.0
```

{% hint style="info" %}
To generate your Accura Scan license contact <sales@accurascan.com>
{% endhint %}

Upload both Ocr and Mrz license accessing "<mark style="color:blue;">https\://\<yourdomain:port></mark>" using a browser, Example is shown in the image below.

<figure><img src="/files/MrTZ3l1MXya3TurXHOJO" alt=""><figcaption></figcaption></figure>

#### Step 4:

Use <mark style="color:blue;">[https://your-domain-or-ip.com:port/ocr.php](https://docs.accurascan.com/language/docker/https:/your-domain-or-ip.com:port/ocr.php)</mark> (POST request) to access the API, an example post request as shown below.

<mark style="color:green;">`POST`</mark> `https://yourdomain:port/ocr.php`

{% hint style="info" %}
To view country\_code and card\_code for any card visit <https://accurascan.com/documents-supported-api>
{% endhint %}

**Request Body**

> You can either pass image file or an image base64.

| Name                                            | Type           | Description                         |
| ----------------------------------------------- | -------------- | ----------------------------------- |
| country\_code<mark style="color:red;">\*</mark> | COL            | put country\_code of the card image |
| card\_code<mark style="color:red;">\*</mark>    | CLMID          | put card\_code of the card image    |
| scan\_image<mark style="color:red;">\*</mark>   | file           | Upload your image file              |
| image\_base64                                   | text or string | paste your image base 64 here       |

> 200: OK An example response is shown in the image below

<figure><img src="/files/kOgYXMisdaq2cErCiqVT" alt=""><figcaption></figcaption></figure>
