# Custom - Command Line

{% hint style="info" %}
Make sure the OCR engine you want to use is all set up on your computer and you can call it from the command line
{% endhint %}

### Variables

* $IMAGE\_PATH
* $IMAGE\_BUFFER
* $IMAGE\_BASE64

***

### Examples:

#### 1. Tesseract OCR

Github Page: <https://github.com/UB-Mannheim/tesseract/wiki>

* Command: \
  `"C:\Program Files\Tesseract-OCR\tesseract.exe" "$IMAGE_PATH" stdout -l jpn+eng --oem 3 --psm 6`
* Alt Command: \
  `tesseract "$IMAGE_PATH" stdout -l jpn+eng --oem 3 --psm 6`

#### 2. EasyOCR

Github Page: <https://github.com/JaidedAI/EasyOCR>

* Command: \
  `easyocr -l ja en -f "$IMAGE_PATH" --detail=0 --gpu=True`


---

# 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/user-guide/ocr/ocr-engines/custom-command-line.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.
