detector

package
v0.0.0-...-bafdb3f Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaceDetector

type FaceDetector struct {
	// contains filtered or unexported fields
}

FaceDetector uses OpenCV and Machinebox/Facebox to detect and compare faces and/or facial expressions

func NewFaceDetector

func NewFaceDetector(settings Settings) (*FaceDetector, error)

NewFaceDetector is the FaceDetector constructor

func (*FaceDetector) Close

func (d *FaceDetector) Close() error

Close closes all closers within a FaceDetector, should be used in a defer statement immediately after checking the error from NewFaceDetector

func (*FaceDetector) Run

func (d *FaceDetector) Run() error

Run samples a face NSamples times, and saves each sample to a file

type Settings

type Settings struct {
	// CaptureDeviceID (default is 0)
	CaptureDeviceID int

	// FaceAlgoPath is the path of the classifier algorithm XML file to use
	// (no default, this is a required argument)
	FaceAlgoPath string

	// WindowTitle is the title to be displayed on the window
	// (default is "Face Trainer")
	WindowTitle string

	// FaceboxAddress is the URL of the MachineBox to use - host:port,
	// (default is http://localhost:8080)
	FaceboxAddress string
}

Settings contains necessary values to initialize a FaceDetector

Jump to

Keyboard shortcuts

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