> For the complete documentation index, see [llms.txt](https://docs.vntranslator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vntranslator.com/advanced/ocr-server-kit.md).

# OCR Server Kit

Running OCR with large models like EasyOCR, PaddleOCR, or SuryaOCR can be slow when executed directly via the command line because the model has to be loaded every time you run it. Using LocalServer helps resolve this by loading the model just once, which makes the recognition process significantly faster.

## Scripts

{% content-ref url="/pages/bojeyOnWjLnotFcimrV2" %}
[EasyOCR](/advanced/ocr-server-kit/easyocr.md)
{% endcontent-ref %}

{% content-ref url="/pages/GjVKy7Hg3YrGbB7DOg1x" %}
[SuryaOCR](/advanced/ocr-server-kit/suryaocr.md)
{% endcontent-ref %}

***

## HTTP Request

<div align="left"><figure><img src="/files/NhWnrEVr5BZu28s7cphF" alt=""><figcaption></figcaption></figure></div>

**Method:** `POST`

**URL:**

```
http://127.0.0.1:5353
```

**Content Type:** `application/json`

**Headers: `{}`**

**Body:**

```
{"image":"$IMAGE_BASE64", "langs": ["ja"]}
```

**Response Type:** `JSON`

**Response Query:** `fullText`

***

## HTTP Response

* **draw\_bounding\_box:** `Boolean`
* **fullText:** `String`
* **lines:** `Array[]`

```json
{
    "draw_bounding_box": true,
    "fullText": "Hello World",
    "lines": [
        {"text": "Hello", "w": 100, "h": 50, "x": 10, "y": 10},
        {"text": "World", "w": 125, "h": 50, "x": 55, "y": 10}
    ]
        
}
```
