detector

package
v0.0.0-...-6fc82a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 NewDetector

func NewDetector() *Detector

NewDetector initializes a new constructor function.

func (*Detector) DetectFaces

func (d *Detector) DetectFaces(pixels []uint8, width, height int) [][]int

DetectFaces runs the cluster detection over the webcam frame received as a pixel array and returns the detected faces.

func (*Detector) DetectLeftPupil

func (d *Detector) DetectLeftPupil(results []int) *pigo.Puploc

DetectLeftPupil detects the left pupil

func (*Detector) DetectRightPupil

func (d *Detector) DetectRightPupil(results []int) *pigo.Puploc

DetectRightPupil detects the right pupil

func (*Detector) Log

func (d *Detector) Log(args ...interface{})

Log calls the `console.log` Javascript function

func (*Detector) ParseCascade

func (d *Detector) ParseCascade(path string) ([]byte, error)

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

func (d *Detector) UnpackCascades() error

UnpackCascades unpack all of used cascade files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL