Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunClient ¶
type AliyunClient struct {
// contains filtered or unexported fields
}
func NewAliyunClient ¶
func NewAliyunClient(c AliyunConf) *AliyunClient
func (*AliyunClient) OCRText ¶
func (a *AliyunClient) OCRText(imgBase64 string) (string, error)
type AliyunConf ¶
type BaiduClient ¶
type BaiduClient struct {
// contains filtered or unexported fields
}
func NewBaiduClient ¶
func NewBaiduClient(conf BaiduConf) *BaiduClient
func (*BaiduClient) OCRText ¶
func (b *BaiduClient) OCRText(imgBase64 string) (string, error)
type BaiduConf ¶
type OcrServiceProvider ¶
type OcrServiceProvider struct {
// contains filtered or unexported fields
}
func (*OcrServiceProvider) Boot ¶
func (i *OcrServiceProvider) Boot()
func (*OcrServiceProvider) Conf ¶
func (i *OcrServiceProvider) Conf() map[string]string
func (*OcrServiceProvider) Description ¶
func (i *OcrServiceProvider) Description() string
func (*OcrServiceProvider) Register ¶
func (i *OcrServiceProvider) Register()
type Options ¶
type Options struct {
Provider string `json:"provider"`
Baidu BaiduConf `json:"baidu"`
Aliyun AliyunConf `json:"aliyun"`
Tencent TencentConf `json:"tencent"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
type TencentClient ¶
type TencentClient struct {
// contains filtered or unexported fields
}
func NewTencentClient ¶
func NewTencentClient(c TencentConf) *TencentClient
func (*TencentClient) OCRText ¶
func (t *TencentClient) OCRText(imgBase64 string) (string, error)
Source Files
¶
- aliyun.go
- baidu.go
- ocr_service_provider.go
- service.go
- tencent.go
Click to show internal directories.
Click to hide internal directories.