Documentation ¶
Overview ¶
Package facenet
Index ¶
- type Instance
- func (ins *Instance) AddPerson(items ...*core.Person)
- func (ins *Instance) DeletePerson(name string) bool
- func (ins *Instance) DetectFaces(img image.Image, minSize int) (*core.FaceMarkers, error)
- func (ins *Instance) DrawMarkers(markers *core.FaceMarkers, txtColor string, successColor string, ...) image.Image
- func (ins *Instance) ExtractFace(person *core.Person, img image.Image, minSize int) (*core.FaceMarker, error)
- func (ins *Instance) LoadPeople(filePath string) error
- func (ins *Instance) Match(embedding []float32) (*core.Person, float64, error)
- func (ins *Instance) People() *core.People
- func (ins *Instance) Reload()
- func (ins *Instance) SaveModel(modelPath string) error
- func (ins *Instance) SetFont(data *draw2d.FontData, size float64) error
- func (ins *Instance) SetFontCache(cache draw2d.FontCache) error
- func (ins *Instance) SetFontPath(cachePath string) error
- func (ins *Instance) SetFontSize(size float64)
- func (ins *Instance) SetNet(net *core.Net)
- func (ins *Instance) SetPeople(people *core.People)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance facenet Instance struct
func (*Instance) DeletePerson ¶
DeletePerson delete a person by name
func (*Instance) DetectFaces ¶
DetectFaces detect face markers from image
func (*Instance) DrawMarkers ¶
func (ins *Instance) DrawMarkers(markers *core.FaceMarkers, txtColor string, successColor string, failedColor string, strokeWidth float64, succeedOnly bool) image.Image
DrawMarkers draw face markers on image
func (*Instance) ExtractFace ¶
func (ins *Instance) ExtractFace(person *core.Person, img image.Image, minSize int) (*core.FaceMarker, error)
ExtractFace extract face for a person from image
func (*Instance) LoadPeople ¶
LoadPeople load people with people model filepath
func (*Instance) SetFontCache ¶
SetFontCache set font cache
func (*Instance) SetFontPath ¶
SetFontPath set font cache with font cache path
func (*Instance) SetFontSize ¶
SetFontSize set font size
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option face instance option interface
func WithPeople ¶
WithPeople set people model with model path
Directories ¶
Path | Synopsis |
---|---|
Package camera include camera modules
|
Package camera include camera modules |
image
Package image.
|
Package image. |
linux
Package linux implement linux device
|
Package linux implement linux device |
cmd
|
|
camera/server
Package service implement server
|
Package service implement server |
Package core facenet core module
|
Package core facenet core module |
Package imageuitl image utils func
|
Package imageuitl image utils func |
Click to show internal directories.
Click to hide internal directories.