ocr

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	DebugDir string
}

Engine is a stub OCR engine when built without the "ocr" build tag. All methods return an error indicating OCR is not available.

func NewEngine

func NewEngine(langs ...string) (*Engine, error)

NewEngine returns an error because OCR support is not compiled in. Build with -tags=ocr to enable OCR (requires Tesseract).

func (*Engine) Close

func (e *Engine) Close()

Close is a no-op for the stub engine.

func (*Engine) RecognizeElement

func (e *Engine) RecognizeElement(ctx context.Context, backendNodeID int64) (string, error)

RecognizeElement always returns an error for the stub engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL