v3

package
v0.0.0-...-9a3c6ac Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 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

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

func (FaceClient) PersonVerify

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

type FaceMatchImage

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

type FaceMatchResponse struct {
	*req.Resp
}

type PersonVerifyResponse

type PersonVerifyResponse struct {
	*req.Resp
}

Jump to

Keyboard shortcuts

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