Documentation ¶
Index ¶
Constants ¶
View Source
const (
URL string = "https://api.projectoxford.ai/face/v1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectOrder ¶
type DetectOrder struct { FaceID bool FaceLandmarks bool FaceAttributes FaceAttributesOrder }
func (DetectOrder) String ¶
func (order DetectOrder) String() string
type Face ¶
func (*Face) Detect ¶
func (face *Face) Detect(url string, order DetectOrder) ([]FaceDetect, error)
type FaceAttributes ¶
type FaceAttributesOrder ¶
type FaceAttributesOrder struct { Age bool `name:"age"` Gender bool `name:"gender"` HeadPose bool `name:"headPose"` Smile bool `name:"smile"` FacialHair bool `name:"facialHair"` Glasses bool `name:"glasses"` }
func (FaceAttributesOrder) String ¶
func (order FaceAttributesOrder) String() (string, error)
type FaceDetect ¶
type FaceDetect struct { FaceID string `json:"faceId"` FaceRectangle Rectangle `json:"faceRectangle"` FaceLandmarks FaceLandmarks `json:"faceLandmarks"` FaceAttributes FaceAttributes `json:"faceAttributes"` }
type FaceLandmarks ¶
type FaceLandmarks struct { UnderLipBottom Position `json:"underLipBottom"` UnderLipTop Position `json:"underLipTop"` UpperLipBottom Position `json:"upperLipBottom"` UpperLipTop Position `json:"upperLipTop"` NoseRightAlarOutTip Position `json:"noseRightAlarOutTip"` NoseLeftAlarOutTip Position `json:"noseLeftAlarOutTip"` NoseRightAlarTop Position `json:"noseRightAlarTop"` NoseLeftAlarTop Position `json:"noseLeftAlarTop"` NoseRootRight Position `json:"noseRootRight"` NoseRootLeft Position `json:"noseRootLeft"` EyeRightOuter Position `json:"eyeRightOuter"` EyeRightBottom Position `json:"eyeRightBottom"` EyeRightTop Position `json:"eyeRightTop"` EyeRightInner Position `json:"eyeRightInner"` EyebrowRightOuter Position `json:"eyebrowRightOuter"` EyebrowRightInner Position `json:"eyebrowRightInner"` EyeLeftInner Position `json:"eyeLeftInner"` EyeLeftBottom Position `json:"eyeLeftBottom"` EyeLeftTop Position `json:"eyeLeftTop"` EyeLeftOuter Position `json:"eyeLeftOuter"` EyebrowLeftInner Position `json:"eyebrowLeftInner"` EyebrowLeftOuter Position `json:"eyebrowLeftOuter"` MouthRight Position `json:"mouthRight"` MouthLeft Position `json:"mouthLeft"` NoseTip Position `json:"noseTip"` PupilRight Position `json:"pupilRight"` PupilLeft Position `json:"pupilLeft"` }
type FacialHair ¶
Click to show internal directories.
Click to hide internal directories.