Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedImageFormat is returned by FaceDetector.DetectFaces calls when given image format is unsupported. ErrUnsupportedImageFormat = fmt.Errorf("unsupported image format") // ErrImageError is returned by FaceDetector.DetectFaces calls when face detector is unable to decode the image. ErrImageError = fmt.Errorf("error loading image") )
Functions ¶
This section is empty.
Types ¶
type Bounds ¶
type Bounds struct { X int `json:"x"` Y int `json:"y"` Height int `json:"height"` Width int `json:"width"` }
Bounds contains the position and size of face boundaries rectangle.
type Face ¶
type Face struct { Bounds *Bounds `json:"bounds"` Mouth *Point `json:"mouth,omitempty"` RightEye *Point `json:"right_eye,omitempty"` LeftEye *Point `json:"left_eye,omitempty"` }
Face is a container for face boundaries and positions of facial features.
type FaceDetector ¶
FaceDetector performs the image analysis and returns the list of detected faces with facial features.
Click to show internal directories.
Click to hide internal directories.