Versions in this module Expand all Collapse all v1 v1.10.2 Jun 26, 2023 Changes in this version + func Init() + func NewApplication() ocr.Ocr + func YunOcr(token, baseStr string) (error, ocr.ReturnData) + type Application struct + type OCR struct + func NewOcr() *OCR + func (_ocr *OCR) GetIOcrImg(templateId string, base string) (data ocr.ReturnIOcrData, err error) + func (_ocr *OCR) OcrImg(base string) (data ocr.ReturnData, err error) + type ResponseData struct + Code string + Msg string + Token string + func GetToken() (error, ResponseData) + type ServiceProvider struct + func (ocr *ServiceProvider) Boot() + func (ocr *ServiceProvider) Register()