ocr

package
v0.0.0-...-ab77af6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: MIT Imports: 11 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 *config.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(cfg *config.Config) *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