Documentation ¶
Index ¶
- type Client
- func (comp *Client) Bankcard(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRBankcard, error)
- func (comp *Client) BusinessLicense(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRBusinessLicense, error)
- func (comp *Client) DriverLicense(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRDrivingLicense, error)
- func (comp *Client) IDCard(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRIDCard, error)
- func (comp *Client) PrintedText(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRPrintedText, error)
- func (comp *Client) UploadImage(ctx context.Context, entryPoint string, imgURL string, img *power.HashMap, ...) (interface{}, error)
- func (comp *Client) VehicleLicense(ctx context.Context, mode string, imgURL string, img *power.HashMap) (*response.ResponseOCRVehicleLicense, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Bankcard ¶
func (comp *Client) Bankcard(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRBankcard, error)
本接口提供基于小程序的银行卡 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.bankcard.html
func (*Client) BusinessLicense ¶
func (comp *Client) BusinessLicense(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRBusinessLicense, error)
本接口提供基于小程序的营业执照 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.businessLicense.html
func (*Client) DriverLicense ¶
func (comp *Client) DriverLicense(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRDrivingLicense, error)
本接口提供基于小程序的驾驶证 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.driverLicense.html
func (*Client) IDCard ¶
func (comp *Client) IDCard(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRIDCard, error)
本接口提供基于小程序的身份证 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.idcard.html
func (*Client) PrintedText ¶
func (comp *Client) PrintedText(ctx context.Context, imgURL string, img *power.HashMap) (*response.ResponseOCRPrintedText, error)
本接口提供基于小程序的通用印刷体 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.printedText.html
func (*Client) UploadImage ¶
func (*Client) VehicleLicense ¶
func (comp *Client) VehicleLicense(ctx context.Context, mode string, imgURL string, img *power.HashMap) (*response.ResponseOCRVehicleLicense, error)
本接口提供基于小程序的行驶证 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.vehicleLicense.html