Documentation ¶
Index ¶
- type Client
- func (comp *Client) BankCard(ctx context.Context, path string) (*response.ResponseOCRBankCard, error)
- func (comp *Client) BizLicense(ctx context.Context, path string) (*response.ResponseOCRBizLicense, error)
- func (comp *Client) Common(ctx context.Context, path string) (*response.ResponseOCRCommon, error)
- func (comp *Client) Driving(ctx context.Context, path string) (*response.ResponseOCRDriving, error)
- func (comp *Client) IDCard(ctx context.Context, path string, IDType string) (*response.ResponseOCRIDCard, error)
- func (comp *Client) PlateNumber(ctx context.Context, path string) (*response.ResponseOCRPlateNumber, error)
- func (comp *Client) VehicleLicense(ctx context.Context, path string) (*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 AllowTypes []string }
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) BankCard ¶
func (comp *Client) BankCard(ctx context.Context, path string) (*response.ResponseOCRBankCard, error)
银行卡 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) BizLicense ¶
func (comp *Client) BizLicense(ctx context.Context, path string) (*response.ResponseOCRBizLicense, error)
营业执照 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) Common ¶
通用印刷体 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) Driving ¶
驾驶证 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) IDCard ¶
func (comp *Client) IDCard(ctx context.Context, path string, IDType string) (*response.ResponseOCRIDCard, error)
身份证 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) PlateNumber ¶
func (comp *Client) PlateNumber(ctx context.Context, path string) (*response.ResponseOCRPlateNumber, error)
车牌识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html
func (*Client) VehicleLicense ¶
func (comp *Client) VehicleLicense(ctx context.Context, path string) (*response.ResponseOCRVehicleLicense, error)
驾驶证 OCR 识别接口 https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html