ocr

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func NewApplication

func NewApplication() ocr.Ocr

func YunOcr

func YunOcr(token, baseStr string) (error, ocr.ReturnData)

Types

type Application

type Application struct {
}

type OCR

type OCR struct {
}

func NewOcr

func NewOcr() *OCR

func (*OCR) GetIOcrImg

func (_ocr *OCR) GetIOcrImg(templateId string, base string) (data ocr.ReturnIOcrData, err error)

GetIOcrImg 调用百度文字识别自定义api

func (*OCR) OcrImg

func (_ocr *OCR) OcrImg(base string) (data ocr.ReturnData, err error)

OcrImg 调用百度文字识别api func (ocr *OCR) OcrImg(base string) (data ReturnData, err error) {

type ResponseData

type ResponseData struct {
	Code  string
	Msg   string
	Token string
}

func GetToken

func GetToken() (error, ResponseData)

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (ocr *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (ocr *ServiceProvider) Register()

Jump to

Keyboard shortcuts

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