Versions in this module Expand all Collapse all v1 v1.3.0 Oct 29, 2026 v1.2.1 Oct 27, 2026 v1.2.0 Oct 27, 2026 v1.1.1 Oct 23, 2026 v1.1.0 Oct 23, 2026 v1.0.1 Oct 22, 2026 v1.0.0 Oct 21, 2026 Changes in this version + const PageMinConf + const SureConf + var ErrRefused = errors.New("the reader refused its answer") + func Adds(orig, read doc.Page) bool + func Cells(words []Word, xs, ys []int) [][]string + func Confirm(ctx context.Context, img image.Image, words []Word, r Reader) ([]Word, Confirmation, error) + func Cover(words []Word, bounds image.Rectangle) float64 + func Coverage(p doc.Page) float64 + func Deskew(img image.Image) (image.Image, float64) + func Filled(cells [][]string) bool + func Grid(img image.Image) (xs, ys []int, ok bool) + func IsText(ws []Word) bool + func IsTextImage(words []Word, bounds image.Rectangle) bool + func MeanConf(ws []Word) float64 + func Page(words []Word, n int, box geom.Rect, img image.Rectangle, minConf float64) doc.Page + func ReadAgain(ctx context.Context, img image.Image, w Word, r Reader) (string, error) + func Same(a, b string) bool + func SameGlyph(a, b string) bool + func Stroke(img image.Image, r image.Rectangle) float64 + type Confirmation struct + Agreed int + Asked int + Reader string + Refused int type Engine + Name func() string + Read func(ctx context.Context, img image.Image) ([]Word, error) + type Fill struct + Alone bool + At [2]int + Text string + Words []int + func Fills(text string, words []Word) []Fill + type Reader interface + Name func() string + Read func(ctx context.Context, img image.Image, maxRunes int) (string, error) + type Table struct + Box image.Rectangle + Cells [][]string + Words []int + XS []int + YS []int + func Tables(img image.Image, words []Word, dpi float64) []Table + type Word struct + Agreed bool + Block int + Box image.Rectangle + Conf float64 + Line int + Par int + Stroke float64 + Text string v0 v0.2.0 Aug 8, 2026 v0.1.0 Aug 5, 2026 Changes in this version + const DefaultThreshold + const PromptChart + const PromptCode + const PromptFormula + const PromptPage + const PromptTable + func Route(p doc.Page, threshold float64) bool + type Engine interface + Close func() error + Recognize func(ctx context.Context, img *image.RGBA, opt Options) (string, error) + type Options struct + MaxTokens int + OnDelta func(string) + Prompt string