Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Constructor struct {
ImgCtx *gg.Context
ShowPupilDet bool
ShowLandmarkDet bool
// contains filtered or unexported fields
}
func NewConstructor ¶
func NewConstructor( imgCtx *gg.Context, faceClassifier *pigo.Pigo, puplocCascade *pigo.PuplocCascade, flpcs map[string][]*pigo.FlpCascade, opts ...DetectionOptions, ) (*Constructor, error)
func (*Constructor) DetectAndDraw ¶
func (c *Constructor) DetectAndDraw(frame *image.YCbCr)
type DetectionOptions ¶
type DetectionOptions func(*Constructor) error
func WithLandmarkDetection ¶
func WithLandmarkDetection() DetectionOptions
WithLandmarkDetection instantiates the constructor with the landmark points detection enabled.
func WithPupilDetection ¶
func WithPupilDetection() DetectionOptions
WithPupilDetection instantiates the constructor with pupil detection enabled.
Click to show internal directories.
Click to hide internal directories.