ocr

package
v3.0.0-...-53ef8d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (comp *Client) UploadImage(ctx context.Context, entryPoint string, imgURL string, img *power.HashMap, result interface{}) (interface{}, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL