fakefacedetect

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFaceDetect

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

FakeFaceDetect is a mock FaceDetector.

func NewFakeFaceDetect

func NewFakeFaceDetect(detections []facedetect.Face, err error) *FakeFaceDetect

NewFakeFaceDetect returns a test double face detector. Parameters passed will be returned by the DetectFaces function.

func (FakeFaceDetect) DetectFaces

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

DetectFaces returns the parameters given to constructor.

Jump to

Keyboard shortcuts

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