# 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}
    ]
        
}
```


---

# 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://docs.vntranslator.com/advanced/ocr-server-kit.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.
