For the complete documentation index, see llms.txt. This page is also available as Markdown.

ScreenAI OCR

Overview

ScreenAI is an offline OCR engine that runs fast on CPU-only, with solid text recognition and support for many languages. It is a portable, standalone executable.

There are three ways to integrate ScreenAI with VNTranslator's OCR module.


Method 1 - HTTP POST (Custom Engine)

Run ScreenAI.exe first, then add it as a Custom Engine in VNTranslator with the following configuration:

URL: http://localhost:62815/ocr
Content-Type: application/json
Headers: {}
Body: {"image":"$IMAGE_BASE64", "type": "base64"}
Response Type: JSON
Response Query: fullText

Method 2 - Command Line (Custom Engine)

Add ScreenAI as a Custom Engine using the command line method:

"x:\path\to\ScreenAI.exe" "$IMAGE_PATH"

Method 3 - ScreenAI OCR Path

  • Download the ScreenAI portable executable.

  • Place ScreenAI.exe in a folder of your choice.

  • Open VNTranslator and go to Settings -> Modules -> OCR -> ScreenAI OCR path.

  • Enter the full path to your ScreenAI.exe file. Example: X:\OCR\ScreenAI.exe

  • then select ScreenAI OCR as your OCR engine.