v3

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaceClient

type FaceClient struct {
	*sdk.Client
}

func NewFaceClient

func NewFaceClient(key, secret string) *FaceClient

func (FaceClient) FaceMatch added in v0.2.10

func (fc FaceClient) FaceMatch(images [2]FaceMatchImage) (*FaceMatchResponse, error)

func (FaceClient) PersonVerify added in v0.2.2

func (fc FaceClient) PersonVerify(image, imageType, idCardNumber, name string, options map[string]string) (*PersonVerifyResponse, error)

type FaceMatchImage added in v0.2.10

type FaceMatchImage struct {
	Image           string `json:"image"`
	ImageType       string `json:"image_type"`
	FaceType        string `json:"face_type,omitempty"`        // 默认LIVE
	QualityControl  string `json:"quality_control,omitempty"`  // 默认 NONE
	LivenessControl string `json:"liveness_control,omitempty"` // 默认 NONE
	FaceSortType    string `json:"face_sort_type,omitempty"`   // 默认为0
}

type FaceMatchResponse added in v0.2.10

type FaceMatchResponse struct {
	*req.Resp
}

type PersonVerifyResponse added in v0.2.2

type PersonVerifyResponse struct {
	*req.Resp
}

Jump to

Keyboard shortcuts

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