Plugin : Tesseract

Author:Rex.Rainbow

Download

Properties

Language

  • Languages, listed in https://github.com/naptha/tesseract.js/blob/master/docs/tesseract_lang_list.md

Custom paths

  • Custom path.

Core path

  • A string specifying the location of the tesseract.js-core library.

Lang path

  • A string specifying the location of the tesseract language files.

Worker path

  • A string specifying the location of the tesseract.worker.js file.

Actions

Job

Action:Recognize

  • Figures out what words are in image, where the words are in image.
    • Image ( object ) : Current frame of Sprite, or canvas object.

Action:Detect

  • Figures out what script (e.g. 'Latin', 'Chinese') the words in image are written in.
    • Image ( object ) : Current frame of Sprite, or canvas object.

Options

Action:Add property

  • Add property to options.
    • Property ( string ) : Property name
    • Value ( number or string ) : Value to set

Action:Set language

  • Set language.
    • Language ( string ) : Language.

Expressions

Progress

Expression:Status

  • Get current status.

Expression:Progress

  • Get current progress.

Result

Expression:Result

  • Get result text or script type.

Expression:Error

  • Get error.

Conditions

Event

Condition:On completed

  • Trigger when recognize completed

Condition:On error

  • Trigger when recognize error

Condition:On progress

  • Trigger when recognize progress