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 ¶ 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 PersonVerifyResponse ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.