Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const (
FACE_MATCH_URL = "https://aip.baidubce.com/rest/2.0/face/v2/match"
)
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 ¶
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 ¶
type VerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.