recognizer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package recognizer include feature extractor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFeatures

func ExtractFeatures(r Recognizer, img *common.Image, faceRect common.Rectangle) ([]float64, error)

ExtractFeatures extract features using recognizer

Types

type Mobilefacenet

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

Mobilefacenet represents Mobilefacenet recognizer

func NewMobilefacenet

func NewMobilefacenet() *Mobilefacenet

NewMobilefacenet returns a new Mobilefacenet recognizer

func (*Mobilefacenet) Destroy

func (d *Mobilefacenet) Destroy()

Destroy implement Recognizer interface

func (*Mobilefacenet) ExtractFeatures

func (d *Mobilefacenet) ExtractFeatures(img *common.Image, faceRect common.Rectangle) ([]float64, error)

ExtractFeatures implement Recognizer interface

func (*Mobilefacenet) LoadModel

func (d *Mobilefacenet) LoadModel(modelPath string) error

LoadModel implement Recognizer interface

func (*Mobilefacenet) Pointer

func (d *Mobilefacenet) Pointer() unsafe.Pointer

Pointer implement Estimator interface

type Recognizer

type Recognizer interface {
	common.Estimator
	ExtractFeatures(img *common.Image, face common.Rectangle) ([]float64, error)
}

Recognizer represents Recognizer interface

Jump to

Keyboard shortcuts

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