face

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Skip                    bool   `yaml:"skip,omitempty"`
	ForceCpu                bool   `yaml:"forceCpu,omitempty"`
	Padding                 int    `yaml:"padding,omitempty"`
	ModelFile               string `yaml:"modelFile,omitempty"`
	ConfigFile              string `yaml:"configFile,omitempty"`
	ScaleWidth              int    `yaml:"scaleWidth,omitempty"`
	MinConfidencePercentage int    `yaml:"minConfidencePercentage,omitempty"`
	MaxPercentage           int    `yaml:"maxPercentage,omitempty"`
	MinOverlapPercentage    int    `yaml:"minOverlapPercentage,omitempty"`
	HighlightColor          string `yaml:"highlightColor,omitempty"`
	HighlightThickness      int    `yaml:"highlightThickness,omitempty"`
}

Config contains the parameters for Face detection

func NewConfig

func NewConfig(configPath string) *Config

NewConfig creates a new Config

type Face

type Face struct {
	Name string
	Skip bool
	// contains filtered or unexported fields
}

Face detects faces within images

func NewFace

func NewFace(name string) *Face

NewFace creates a new Face

func (*Face) Run

func (f *Face) Run(input <-chan videosource.ProcessedImage) <-chan videosource.ProcessedImage

Run starts the face detection process

func (*Face) SetConfig

func (f *Face) SetConfig(config *Config)

SetConfig on face

Jump to

Keyboard shortcuts

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