ocr

package
v0.0.0-...-1eaaa5a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAnImage = errors.New("not an image")
View Source
var MaxImageSize int = 10 * 1024 * 1024 // 10MB

Functions

func NewClient

func NewClient() (*gosseract.Client, error)

func NewImage

func NewImage(content []byte) *image

Types

type Result

type Result struct {
	// contains filtered or unexported fields
}

func Run

func Run(c *gosseract.Client, img *image) (*Result, error)

func (*Result) String

func (res *Result) String() string

func (*Result) Words

func (res *Result) Words() <-chan *Word

type Word

type Word struct {
	// contains filtered or unexported fields
}

func (*Word) IsStop

func (w *Word) IsStop() bool

func (*Word) String

func (w *Word) String() string

Jump to

Keyboard shortcuts

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