landmarker

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: 0

Documentation

Overview

Package landmarker include landmarker instances

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractKeypoints

func ExtractKeypoints(d Landmarker, img *common.Image, faceRect common.Rectangle) ([]common.Point, error)

ExtractKeypoints extract keypoints using landmarker

Types

type Insightface

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

Insightface represents Insightface landmarker

func NewInsightface

func NewInsightface() *Insightface

NewInsightface returns a new Insightface landmarker

func (*Insightface) Destroy

func (d *Insightface) Destroy()

Destroy implement Landmarker interface

func (*Insightface) ExtractKeypoints

func (d *Insightface) ExtractKeypoints(img *common.Image, faceRect common.Rectangle) ([]common.Point, error)

ExtractKeypoints implement Landmarker interface

func (*Insightface) LoadModel

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

LoadModel implement Landmarker interface

func (*Insightface) Pointer

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

Pointer implement Estimator interface

type Landmarker

type Landmarker interface {
	common.Estimator
	ExtractKeypoints(img *common.Image, face common.Rectangle) ([]common.Point, error)
}

Landmarker represents landmarker interface

type Scrfd

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

Scrfd represents Scrfd landmarker

func NewScrfd

func NewScrfd() *Scrfd

NewScrfd returns a new Scrfd landmarker

func (*Scrfd) Destroy

func (d *Scrfd) Destroy()

Destroy implement Landmarker interface

func (*Scrfd) ExtractKeypoints

func (d *Scrfd) ExtractKeypoints(img *common.Image, faceRect common.Rectangle) ([]common.Point, error)

ExtractKeypoints implement Landmarker interface

func (*Scrfd) LoadModel

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

LoadModel implement Landmarker interface

func (*Scrfd) Pointer

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

Pointer implement Estimator interface

type Zq

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

Zq represents Zq landmarker

func NewZq

func NewZq() *Zq

NewZq returns a new Zq landmarker

func (*Zq) Destroy

func (d *Zq) Destroy()

Destroy implement Landmarker interface

func (*Zq) ExtractKeypoints

func (d *Zq) ExtractKeypoints(img *common.Image, faceRect common.Rectangle) ([]common.Point, error)

ExtractKeypoints implement Landmarker interface

func (*Zq) LoadModel

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

LoadModel implement Landmarker interface

func (*Zq) Pointer

func (d *Zq) 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