screen

screen.screen.ocr_file

Declaration
lua
screen.ocr_file(path [, lang])
Description
OCR an image file directly (bypasses screen capture).
Parameters
NameTypeRequiredDefaultDescription
pathstringRequired—Image file path (resolved via VNTResolvePath)
langstringOptional"eng"OCR language
Return Values
TypeDescription
tableArray of line strings
nilnil + error
Example
lua
local lines = screen.ocr_file("screenshot.png")