tecent

package
v0.0.0-...-cabce4f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RejectReasonMaps map[string]string
)

Functions

This section is empty.

Types

type Data

type Data struct {
	Name       string `json:"name"`
	Sex        string `json:"sex"`
	Nation     string `json:"nation"`
	Birth      string `json:"birth"`
	Address    string `json:"address"`
	Id         string `json:"id"`
	FrontImage string `json:"frontimage"`
	Authority  string `json:"authority"`
	ValidData  string `json:"valid_date"`
	BackImage  string `json:"backimage"`
}

type Response

type Response struct {
	Ret  int    `json:"ret"`
	Msg  string `json:"msg"`
	Data Data   `json:"data"`
}

type TenCentOCRProvider

type TenCentOCRProvider struct {
	AppKey string
	AppID  string
}

func New

func New(appKey, appID string) TenCentOCRProvider

func (TenCentOCRProvider) OcrCheck

func (tenCentOCRProvider TenCentOCRProvider) OcrCheck(imageUrl string, isBack bool) (ocrCommonData ocr_provider.OcrCommonData, err error)

Jump to

Keyboard shortcuts

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