detecter

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: 5 Imported by: 2

Documentation

Overview

Package detecter face detecter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(d Detecter, img *common.Image) ([]face.FaceInfo, error)

Detect detect face useing detecter

Types

type Anticonv

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

Anticonv represents anticonv detecter

func NewAnticonv

func NewAnticonv() *Anticonv

NewAnticonv returns a new Anticonv

func (*Anticonv) Destroy

func (d *Anticonv) Destroy()

Destroy free detecter

func (*Anticonv) Detect

func (d *Anticonv) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*Anticonv) LoadModel

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

LoadModel load model for detecter

func (*Anticonv) Pointer

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

Pointer implement Estimator interface

type Centerface

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

Centerface represents centerface detecter

func NewCenterface

func NewCenterface() *Centerface

NewCenterface returns a new Centerface

func (*Centerface) Destroy

func (d *Centerface) Destroy()

Destroy free detecter

func (*Centerface) Detect

func (d *Centerface) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*Centerface) LoadModel

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

LoadModel load model for detecter

func (*Centerface) Pointer

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

Pointer implement Estimator interface

type Detecter

type Detecter interface {
	common.Estimator
	Detect(img *common.Image) ([]face.FaceInfo, error)
}

Detecter represents deteter interface

type Mtcnn

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

Mtcnn represents mtcnn detecter

func NewMtcnn

func NewMtcnn() *Mtcnn

NewMtcnn returns a new Mtcnn

func (*Mtcnn) Destroy

func (d *Mtcnn) Destroy()

Destroy free detecter

func (*Mtcnn) Detect

func (d *Mtcnn) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*Mtcnn) LoadModel

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

LoadModel implement Detecter interface

func (*Mtcnn) Pointer

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

Pointer implement Estimator interface

type RetinaFace

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

RetinaFace represents retinaface detecter

func NewRetinaFace

func NewRetinaFace() *RetinaFace

NewRetinaFace returns a new RetinaFace

func (*RetinaFace) Destroy

func (d *RetinaFace) Destroy()

Destroy free detecter

func (*RetinaFace) Detect

func (d *RetinaFace) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*RetinaFace) LoadModel

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

LoadModel implement Detecter interface

func (*RetinaFace) Pointer

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

Pointer implement Estimator interface

type Scrfd

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

Scrfd represents scrfd detecter

func NewScrfd

func NewScrfd() *Scrfd

NewScrfd returns a new Scrfd

func (*Scrfd) Destroy

func (d *Scrfd) Destroy()

Destroy free detecter

func (*Scrfd) Detect

func (d *Scrfd) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*Scrfd) LoadModel

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

LoadModel implement Detecter interface

func (*Scrfd) Pointer

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

Pointer implement Estimator interface

type YoloFace

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

YoloFace represents yoloface detecter

func NewYoloFace

func NewYoloFace() *YoloFace

NewYoloFace returns a new YoloFace

func (*YoloFace) Destroy

func (d *YoloFace) Destroy()

Destroy free detecter

func (*YoloFace) Detect

func (d *YoloFace) Detect(img *common.Image) ([]face.FaceInfo, error)

Detect implement Detecter interface

func (*YoloFace) LoadModel

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

LoadModel implement Detecter interface

func (*YoloFace) Pointer

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

Pointer implement Estimator interface

Jump to

Keyboard shortcuts

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