Documentation
¶
Index ¶
- func FindCurrentCharacter(hWnd win.HWND, coords []Rect) int32
- func GetPixelColor(hWnd win.HWND, rect Rect) (color.RGBA, error)
- func InitOcr(cfg OCRConfig, hWnd win.HWND)
- func LoadGameData()
- func PanicRecover(r interface{})
- func SaveImg(img image.Image, fileName string) error
- type Data
- type GameDataStruct
- type OCRConfig
- type OCRManager
- type Rect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCurrentCharacter ¶
This function check the brightness of the pixels in the given coordinates to determine the current character
func LoadGameData ¶
func LoadGameData()
func PanicRecover ¶
func PanicRecover(r interface{})
Types ¶
type Data ¶
func FindClosestCorrespondence ¶
This function is useful to mitigate OCR errors by finding the closest correspondence to the given text
type GameDataStruct ¶
var GameData *GameDataStruct
type OCRManager ¶
var OcrManager *OCRManager
Click to show internal directories.
Click to hide internal directories.