# 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="https://2173810795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ct3oWZAE255BxwYNdp5%2Fuploads%2F9hcj2SmcOj5YEGIOPRVQ%2FScreenshot%202025-09-08%20at%203.51.43%E2%80%AFPM.png?alt=media&#x26;token=de32bed3-6ad4-4253-917d-69960d5df871" 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="https://2173810795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ct3oWZAE255BxwYNdp5%2Fuploads%2FKtJWdYahYgiQT62iRkMT%2FScreenshot%202025-09-08%20at%2011.02.39%E2%80%AFAM.png?alt=media&#x26;token=89961488-e8a8-417a-b85d-5e4e8c5bc1e2" alt=""><figcaption></figcaption></figure>
