yoloface

package
v0.0.0-...-8b6d769 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(faceDetectorScore float32, iouThreshold float64) func() ModelT

Types

type Detection

type Detection struct {
	BoundingBox   model.BoundingBox
	FaceLandmark5 []gocv.Point2f
	Confidence    float32
}

type Input

type Input struct {
	Img gocv.Mat
}

type Model

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

func New

func New(faceDetectorScore float32, iouThreshold float64) *Model

func (*Model) ModelName

func (m *Model) ModelName() string

func (*Model) ModelVersion

func (m *Model) ModelVersion() string

func (*Model) PostProcess

func (m *Model) PostProcess(rawOutputContents [][]byte) (*Output, error)

func (*Model) PreProcess

func (m *Model) PreProcess(i *Input) ([]*protobuf.InferTensorContents, error)

type ModelT

type ModelT = model.Model[*Input, *Output]

type Output

type Output struct {
	Detections []Detection
}

type Resolution

type Resolution struct {
	Width  uint
	Height uint
}

Jump to

Keyboard shortcuts

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