Documentation ¶
Index ¶
- type Detector
- func (d *Detector) DetectFaces(pixels []uint8, width, height int) [][]int
- func (d *Detector) DetectLandmarkPoints(leftEye, rightEye *pigo.Puploc) [][]int
- func (d *Detector) DetectLeftPupil(results []int) *pigo.Puploc
- func (d *Detector) DetectRightPupil(results []int) *pigo.Puploc
- func (d *Detector) FetchCascade(url string) ([]byte, error)
- func (d *Detector) Log(args ...interface{})
- func (d *Detector) UnpackCascades() error
- type FlpCascade
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector struct holds the main components of the fetching operation.
func (*Detector) DetectFaces ¶
DetectFaces runs the cluster detection over the webcam frame received as a pixel array and returns the detected faces.
func (*Detector) DetectLandmarkPoints ¶ added in v1.4.1
DetectLandmarkPoints detects the landmark points
func (*Detector) DetectLeftPupil ¶
DetectLeftPupil detects the left pupil
func (*Detector) DetectRightPupil ¶
DetectRightPupil detects the right pupil
func (*Detector) FetchCascade ¶
FetchCascade retrive the cascade file trough a JS http connection. It should return the binary data as uint8 integers or err in case of an error.
func (*Detector) Log ¶
func (d *Detector) Log(args ...interface{})
Log calls the `console.log` Javascript function
func (*Detector) UnpackCascades ¶
UnpackCascades unpack all of used cascade files.
type FlpCascade ¶
type FlpCascade struct { *pigo.PuplocCascade // contains filtered or unexported fields }
FlpCascade holds the binary representation of the facial landmark points cascade files