detection

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

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

Face detects the position of a face from an input image

func New

func New(cl string, scaleFactor float64, minNeighbors int) *Face

New loads the cascades and creates a new face processor to clear memory Close() must be called

func (*Face) Close

func (fp *Face) Close()

Close frees allocated memory

func (*Face) DetectFaces

func (fp *Face) DetectFaces(file string) (faces []image.Rectangle, bounds image.Rectangle, err error)

DetectFaces detects faces in the image and returns an array of rectangle

Jump to

Keyboard shortcuts

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