lite

package
v0.0.0-...-6882831 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DLibRecognizer

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

func (*DLibRecognizer) Init

func (dl *DLibRecognizer) Init() error

func (*DLibRecognizer) Predict

func (dl *DLibRecognizer) Predict(data []byte, rects []image.Rectangle) (agePred []face.AgePredictResult, genderPred []face.GenderPredictResult, err error)

func (*DLibRecognizer) Recognize

func (dl *DLibRecognizer) Recognize(data []byte) ([]*RecognizedResult, error)

func (*DLibRecognizer) SetFeatures

func (dl *DLibRecognizer) SetFeatures(samples []face.Descriptor, cats []int32)

func (*DLibRecognizer) Stop

func (dl *DLibRecognizer) Stop()

type FRLite

type FRLite struct {
	DLibRecognizer
	// contains filtered or unexported fields
}

func New

func New(formats resource.FileFormats) (*FRLite, error)

func (*FRLite) Init

func (fr *FRLite) Init(formats resource.FileFormats) (err error)

func (*FRLite) Lite

func (fr *FRLite) Lite(ctx *kernel.RequestContext, data []byte) ([]*face_rkg.RecognizedPerson, error)

Lite completes the core logic of face recognition

func (*FRLite) Terminate

func (fr *FRLite) Terminate()

type RecognizedResult

type RecognizedResult struct {
	Pid  int
	Rect image.Rectangle
}

Jump to

Keyboard shortcuts

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