Versions in this module Expand all Collapse all v0 v0.0.2 Apr 28, 2026 v0.0.1 Apr 28, 2026 Changes in this version + func DecodeImage(data []byte) (image.Image, error) + func DefaultAssetsDir() string + func DetectionPreprocess(img image.Image) ([]float32, float64) + func LoadImageFile(path string) (image.Image, error) + func OCRPreprocess(img image.Image, pngFix bool) ([]float32, int, int) + func ReadInputFile(path string) ([]byte, error) + func RunOCRFile(cfg OCRConfig) (any, error) + func RunOCRImage(img image.Image, cfg OCRConfig) (any, error) + type ClickCaptchaResult struct + Target [][]int + func ResolveClickCaptcha(img image.Image, boxes []DetectionBox) (ClickCaptchaResult, error) + func RunClickCaptchaFile(cfg DetectionConfig) (ClickCaptchaResult, error) + type Client struct + func NewClient(cfg ClientConfig) *Client + func (c *Client) ClickFile(path string) (ClickCaptchaResult, error) + func (c *Client) ClickImage(img image.Image) (ClickCaptchaResult, error) + func (c *Client) DetectFile(path string) ([]DetectionBox, error) + func (c *Client) DetectImage(img image.Image) ([]DetectionBox, error) + func (c *Client) OCRFile(path string, opts OCROptions) (any, error) + func (c *Client) OCRImage(img image.Image, opts OCROptions) (any, error) + func (c *Client) SlideComparisonFile(targetPath, backgroundPath string) (SlideResult, error) + func (c *Client) SlideMatchFile(targetPath, backgroundPath string, simple bool) (SlideResult, error) + type ClientConfig struct + AssetsDir string + RuntimePath string + UseBetaModel bool + type DetectionBox []int + func RunDetectionFile(cfg DetectionConfig) ([]DetectionBox, error) + func RunDetectionImage(img image.Image, cfg DetectionConfig) ([]DetectionBox, error) + type DetectionConfig struct + ImagePath string + ModelPath string + RuntimePath string + type OCRConfig struct + CharsetName string + CharsetPath string + ImagePath string + ModelPath string + PNGFix bool + Probability bool + RuntimePath string + type OCROptions struct + PNGFix bool + Probability bool + type OCRProbability struct + Confidence float64 + Text string + type SlideResult struct + Confidence *float64 + Target []int + TargetX int + TargetY int + func RunSlideComparisonFile(targetPath, backgroundPath string) (SlideResult, error) + func RunSlideMatchFile(targetPath, backgroundPath string, simple bool) (SlideResult, error) + func SlideComparison(target, background image.Image) SlideResult + func SlideMatch(target, background image.Image, simple bool) SlideResult