Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaceClient ¶
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 PersonVerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.