Documentation ¶
Index ¶
- type Client
- func (c *Client) Detect(image io.Reader) (*DetectRes, error)
- func (c *Client) GetFace(faceToken string) (*Face, error)
- func (c *Client) GetFaces(options *FacesListOptions) (*FacesList, error)
- func (c *Client) Recognize(image io.Reader) (*RecognizeRes, error)
- func (c *Client) Train(image io.Reader, faceID string) (*TrainRes, error)
- type DetectRes
- type DetectedFace
- type Face
- type FaceImage
- type FacesList
- type FacesListOptions
- type RecognizeRes
- type RecognizedFace
- type Rectangle
- type TrainRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client .
func (*Client) GetFaces ¶
func (c *Client) GetFaces(options *FacesListOptions) (*FacesList, error)
GetFaces returns trained faces and their images
type DetectRes ¶
type DetectRes struct { Count int `json:"count"` Faces []DetectedFace `json:"faces"` }
DetectRes .
type DetectedFace ¶
type DetectedFace struct {
Rectangle Rectangle `json:"rectangle"`
}
DetectedFace .
type Face ¶
type Face struct { FaceToken string `json:"face_token"` FaceID string `json:"face_id"` FaceImages []FaceImage `json:"face_images"` CreatedAt time.Time `json:"created_at"` }
Face .
type FaceImage ¶
type FaceImage struct { ImageToken string `json:"image_token"` ImageURL string `json:"image_url"` CreatedAt time.Time `json:"created_at"` }
FaceImage .
type FacesList ¶
type FacesList struct { Count int `json:"count"` PagesCount int `json:"pages_count"` Faces []Face `json:"faces"` }
FacesList .
type FacesListOptions ¶
FacesListOptions .
type RecognizeRes ¶
type RecognizeRes struct { Count int `json:"count"` Faces []RecognizedFace `json:"faces"` }
RecognizeRes .
type RecognizedFace ¶
type RecognizedFace struct { Rectangle Rectangle `json:"rectangle"` FaceHash string `json:"face_hash"` FaceID string `json:"face_id"` Confidence float64 `json:"confidence"` URL string `json:"image_url"` }
RecognizedFace .
Click to show internal directories.
Click to hide internal directories.