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

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