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 (*Scrfd) ExtractKeypoints ¶
func (d *Scrfd) ExtractKeypoints(img *common.Image, faceRect common.Rectangle) ([]common.Point, error)
ExtractKeypoints implement Landmarker interface
Click to show internal directories.
Click to hide internal directories.