pigofacedetect

package
v0.0.0-...-919b350 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PigoFaceDetector

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

PigoFaceDetector is face detector implementation based on pigo.

func NewPigoFaceDetector

func NewPigoFaceDetector() *PigoFaceDetector

NewPigoFaceDetector creates a new instance of PigoFaceDetector, a pigo based implementation of FaceDetector.

func (PigoFaceDetector) DetectFaces

func (pfd PigoFaceDetector) DetectFaces(ctx context.Context, img io.Reader) ([]facedetect.Face, error)

DetectFaces analyzes image provided by img parameter and returns slice of detected faces with facial features.

func (*PigoFaceDetector) LoadCascades

func (pfd *PigoFaceDetector) LoadCascades(cascadeDir string) error

LoadCascades loads binary cascade files required by pigo.

Jump to

Keyboard shortcuts

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