Find Text Parameters
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 |
WORD
: number = 0
LINE
: number = 1
PARA
: number = 2
AUTO
: number = 3
REGEX
: number = 4
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
TParam timeout(timeout: number)
Set timeout to a new value
Parameters | |
timeout | Timeout of the find operation in miliseconds |
Return | |
TParam | This TParam instance |
TParam sRate(sRate: number)
Set sRate to a new value
Parameters | |
sRate | How many scans per second |
Return | |
TParam | This TParam instance |
TParam mScore(mScore: number)
Set mScore to a new value
Parameters | |
mScore | Minimum score to consider a match |
Return | |
TParam | This TParam instance |
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 |
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 |
TParam whitelist(whitelist: string)
Set whitelist to a new value
Parameters | |
whitelist | Allow characters |
Return | |
TParam | This TParam instance |
TParam blacklist(blacklist: string)
Set blacklist to a new value
Parameters | |
blacklist | Disallow characters |
Return | |
TParam | This TParam instance |
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