ocr

package
v0.0.0-...-329d92c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baidu

type Baidu struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Baidu baidu ocr api

func NewBaidu

func NewBaidu(cfg *util.Config) *Baidu

NewBaidu new

func (*Baidu) GetText

func (baidu *Baidu) GetText(imgPath string) (string, error)

GetText 识别图片中的文字

type Tesseract

type Tesseract struct{}

Tesseract tesseract 识别

func NewTesseract

func NewTesseract() *Tesseract

NewTesseract new

func (*Tesseract) GetText

func (tesseract *Tesseract) GetText(imgPath string) (string, error)

GetText 根据图片路径获取识别文字

Jump to

Keyboard shortcuts

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