Documentation
¶
Overview ¶
Command tplprobe locates one stored template on a frame across a scale sweep and prints the ranked result.
It answers the question the geometry work keeps running into: "is this button where the mapping says it is, and at what scale is it drawn?" The templates in assets/templates were captured at the 860x732 reference geometry, so on any other geometry the button is rendered at the display scale k — and the tap points in internal/bot's villagePinpoints are a *prediction* that can be wrong by a whole widget. Pointing this at a live frame turns that prediction into a measurement.
Usage:
go run ./cmd/tplprobe -name btn_find_match # live frame, coarse sweep go run ./cmd/tplprobe -img shot.png -name btn_find_match -min 1.2 -max 1.45 -steps 6 go run ./cmd/tplprobe -name btn_battle -roi 900,380,1280,560 # limit the search window