Versions in this module Expand all Collapse all v0 v0.1.4 Oct 4, 2026 Changes in this version + func JoinWords(words []string) string + type Engine interface + Recognize func(ctx context.Context, image image.Image) ([]TextBlock, error) + type HTTPClient struct + APIKey string + Client *http.Client + Endpoint string + Language string + MaxResponseBytes int64 + func NewHTTPClient(endpoint, apiKey, language string) *HTTPClient + func (h *HTTPClient) Recognize(ctx context.Context, input image.Image) ([]TextBlock, error) + type Tesseract struct + Language string + PSM int + Path string + TempDir string + func NewTesseract(path, language string) *Tesseract + func (t *Tesseract) Recognize(ctx context.Context, input image.Image) ([]TextBlock, error) + type TextBlock struct + Bounds image.Rectangle + Confidence float64 + Text string + func Normalize(blocks []TextBlock, bounds image.Rectangle) []TextBlock + func ParseTSV(input io.Reader) ([]TextBlock, error)