ocrutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoInputData = errors.New("no input data")

Functions

This section is empty.

Types

type OCRProcessor

type OCRProcessor interface {
	OCRSync(ctx context.Context, b []byte) (TextResults, error)
	OCRSyncImageWriteFile(ctx context.Context, outfilename string, perm os.FileMode, imgs []image.Image) (TextResults, error)
	OCRSyncImageLocationsWriteFile(ctx context.Context, outfilename string, perm os.FileMode, imglocations []string) (TextResults, error)
}

type TextResults

type TextResults struct {
	OCRService   string
	OCRDateTime  time.Time
	Lines        []string
	WordsPrinted []string
}

Jump to

Keyboard shortcuts

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