v2

package
Version: v0.0.0-...-bc30745 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type FaceClient struct {
	*sdk.Client
}

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) Verify

func (fc FaceClient) Verify(img *vision.Image, uid string, groupID string, options map[string]interface{}) (*VerifyResponse, error)

type FaceResponse

type FaceResponse struct {
	*req.Resp
}

type IdentifyResponse

type IdentifyResponse struct {
	*req.Resp
}

type MultiVerifyResponse

type MultiVerifyResponse struct {
	*req.Resp
}

type VerifyResponse

type VerifyResponse struct {
	*req.Resp
}

Jump to

Keyboard shortcuts

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