Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / MatchResult

Interface: MatchResult ​

Defined in: botjs/src/image-match.ts:75

Result from a successful image template match

Properties ​

x ​

x: number

Defined in: botjs/src/image-match.ts:77

X coordinate of the match (top-left corner)


y ​

y: number

Defined in: botjs/src/image-match.ts:79

Y coordinate of the match (top-left corner)


width ​

width: number

Defined in: botjs/src/image-match.ts:81

Width of the matched region


height ​

height: number

Defined in: botjs/src/image-match.ts:83

Height of the matched region


confidence ​

confidence: number

Defined in: botjs/src/image-match.ts:85

Confidence score from 0.0 to 1.0 (higher = better match)


scale ​

scale: number

Defined in: botjs/src/image-match.ts:87

Scale at which the template was matched (1.0 = original size)

Released under the MIT License.