TParam

Find Text Parameters

Constructor
TParam(timeout: number = 0, sRate: number = 3, mScore: number = 0.7, scale: number = 1, mode: number = 0, whitelist: string = null, blacklist: string = null, case: bool = false)

Construct a Find Text Parameter

Parameters
timeout Timeout of the find operation in miliseconds
sRate How many scans per second
mScore Minimum score to consider a match
scale Scale the image before OCR. The scale factor.
mode See Constants
whitelist Allow characters
blacklist Disallow characters
case Whether text compare is case sensitive or not

TParam(param: TParam)

Construct a TParam from another TParam

Parameters
param another TParam to copy value from
Constants

WORD: number = 0

LINE: number = 1

PARA: number = 2

AUTO: number = 3

REGEX: number = 4

Static Methods
timeout
static TParam timeout(timeout: number)

Create a TParam with timeout parameter. Other parameter leave default

Parameters
timeout Timeout of the find operation in miliseconds
Return
TParam New instance of TParam
sRate
static TParam sRate(sRate: number)

Create a TParam with sRate parameter. Other parameter leave default

Parameters
sRate How many scans per second
Return
TParam New instance of TParam
mScore
static TParam mScore(mScore: number)

Create a TParam with mScore parameter. Other parameter leave default

Parameters
mScore Minimum score to consider a match
Return
TParam New instance of TParam
scale
static TParam scale(scale: number)

Create a TParam with scale parameter. Other parameter leave default

Parameters
scale Scale the image before OCR. The scale factor
Return
TParam New instance of TParam
mode
static TParam mode(mode: number)

Create a TParam with mode parameter. Other parameter leave default

Parameters
mode Segment Mode: 0 - word, 1 - line, 2 - paragraph. See Constants
Return
TParam New instance of TParam
whitelist
static TParam whitelist(whitelist: string)

Create a TParam with whitelist parameter. Other parameter leave default

Parameters
whitelist Allow characters
Return
TParam New instance of TParam
blacklist
static TParam blacklist(blacklist: string)

Create a TParam with blacklist parameter. Other parameter leave default

Parameters
blacklist Disallow characters
Return
TParam New instance of TParam
case
static TParam case(case: bool)

Create a TParam with case parameter. Other parameter leave default

Parameters
case Whether text compare is case sensitive or not
Return
TParam New instance of TParam
Methods
timeout
TParam timeout(timeout: number)

Set timeout to a new value

Parameters
timeout Timeout of the find operation in miliseconds
Return
TParam This TParam instance
sRate
TParam sRate(sRate: number)

Set sRate to a new value

Parameters
sRate How many scans per second
Return
TParam This TParam instance
mScore
TParam mScore(mScore: number)

Set mScore to a new value

Parameters
mScore Minimum score to consider a match
Return
TParam This TParam instance
scale
TParam scale(scale: number)

Set scale to a new value

Parameters
scale Scale the image before OCR. The scale factor
Return
TParam This TParam instance
mode
TParam mode(mode: number)

Set mode to a new value

Parameters
mode Segment Mode: 0 - word, 1 - line, 2 - paragraph. See Constants
Return
TParam This TParam instance
whitelist
TParam whitelist(whitelist: string)

Set whitelist to a new value

Parameters
whitelist Allow characters
Return
TParam This TParam instance
blacklist
TParam blacklist(blacklist: string)

Set blacklist to a new value

Parameters
blacklist Disallow characters
Return
TParam This TParam instance
case
TParam case(case: bool)

Set case to a new value

Parameters
case Whether text compare is case sensitive or not
Return
TParam This TParam instance

© 2024 - Macrorify by KoK-CODE