Documentation ¶
Index ¶
- type FaceClient
- func (fc *FaceClient) DetectAndAnalysis(image *vision.Image, options map[string]interface{}) (*FaceResponse, error)
- func (fc FaceClient) Identify(img *vision.Image, groupID []string, options map[string]interface{}) (*IdentifyResponse, error)
- func (fc FaceClient) Match(img1, img2 *vision.Image, options map[string]interface{}) (*FaceResponse, error)
- func (fc FaceClient) MultiVerify(image vision.Image, groupIDs []string, options map[string]interface{}) (*MultiVerifyResponse, error)
- func (fc FaceClient) PersonVerify(image, idCardNumber, name string, options map[string]string) (*PersonVerifyResponse, error)
- func (fc FaceClient) Verify(img *vision.Image, uid string, groupID string, options map[string]interface{}) (*VerifyResponse, error)
- type FaceResponse
- type IdentifyResponse
- type MultiVerifyResponse
- type PersonVerifyResponse
- type VerifyResponse
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) DetectAndAnalysis ¶
func (fc *FaceClient) DetectAndAnalysis(image *vision.Image, options map[string]interface{}) (*FaceResponse, error)
func (FaceClient) Identify ¶
func (fc FaceClient) Identify(img *vision.Image, groupID []string, options map[string]interface{}) (*IdentifyResponse, error)
func (FaceClient) Match ¶
func (fc FaceClient) Match(img1, img2 *vision.Image, options map[string]interface{}) (*FaceResponse, error)
func (FaceClient) MultiVerify ¶
func (fc FaceClient) MultiVerify(image vision.Image, groupIDs []string, options map[string]interface{}) (*MultiVerifyResponse, error)
func (FaceClient) PersonVerify ¶ added in v0.2.2
func (fc FaceClient) PersonVerify(image, idCardNumber, name string, options map[string]string) (*PersonVerifyResponse, error)
/ image cannot exceed 5M
func (FaceClient) Verify ¶
func (fc FaceClient) Verify(img *vision.Image, uid string, groupID string, options map[string]interface{}) (*VerifyResponse, error)
type FaceResponse ¶
type IdentifyResponse ¶
type MultiVerifyResponse ¶
type PersonVerifyResponse ¶ added in v0.2.2
type VerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.