Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API handles Face Detect requests, register routes and creates the HTTP server.
func NewAPI ¶
func NewAPI(addr string, d download.Downloader, fd facedetect.FaceDetector) *API
NewAPI creates a HTTP API responsible for serving face detection requests. Call Serve afterwards and pass a parent context and the return value of Routes as parameters.
type Faces ¶
type Faces struct {
Faces []facedetect.Face `json:"Faces"`
}
Faces structure is response sent to client. It encapsulates response from face detector.
Click to show internal directories.
Click to hide internal directories.