Documentation ¶
Index ¶
- type Detector
- func (d *Detector) DetectFaces(pixels []uint8, width, height int) [][]int
- func (d *Detector) DetectLeftPupil(results []int) *pigo.Puploc
- func (d *Detector) DetectRightPupil(results []int) *pigo.Puploc
- func (d *Detector) Log(args ...interface{})
- func (d *Detector) ParseCascade(path string) ([]byte, error)
- func (d *Detector) UnpackCascades() error
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) DetectLeftPupil ¶
DetectLeftPupil detects the left pupil
func (*Detector) DetectRightPupil ¶
DetectRightPupil detects the right pupil
func (*Detector) Log ¶
func (d *Detector) Log(args ...interface{})
Log calls the `console.log` Javascript function
func (*Detector) ParseCascade ¶
ParseCascade loads and parse the cascade file through the Javascript `location.href` method supported by the `js/syscall` package. This method will return the cascade file encoded as a byte array.
func (*Detector) UnpackCascades ¶
UnpackCascades unpack all of used cascade files.
Click to show internal directories.
Click to hide internal directories.