Documentation ¶
Index ¶
- type Client
- func (comp *Client) Bankcard(imgURL string, img *power.HashMap) (*response.ResponseOCRBankcard, error)
- func (comp *Client) BusinessLicense(imgURL string, img *power.HashMap) (*response.ResponseOCRBusinessLicense, error)
- func (comp *Client) DriverLicense(imgURL string, img *power.HashMap) (*response.ResponseOCRDrivingLicense, error)
- func (comp *Client) IDCard(imgURL string, img *power.HashMap) (*response.ResponseOCRIDCard, error)
- func (comp *Client) PrintedText(imgURL string, img *power.HashMap) (*response.ResponseOCRPrintedText, error)
- func (comp *Client) UploadImage(entryPoint string, imgURL string, img *power.HashMap, result interface{}) (interface{}, error)
- func (comp *Client) VehicleLicense(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 {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) Bankcard ¶
func (comp *Client) Bankcard(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(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(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 ¶
本接口提供基于小程序的身份证 OCR 识别 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.idcard.html
func (*Client) PrintedText ¶
func (comp *Client) PrintedText(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(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