Documentation ¶
Index ¶
- type DLibRecognizer
- func (dl *DLibRecognizer) Init() error
- func (dl *DLibRecognizer) Predict(data []byte, rects []image.Rectangle) (agePred []face.AgePredictResult, genderPred []face.GenderPredictResult, ...)
- func (dl *DLibRecognizer) Recognize(data []byte) ([]*RecognizedResult, error)
- func (dl *DLibRecognizer) SetFeatures(samples []face.Descriptor, cats []int32)
- func (dl *DLibRecognizer) Stop()
- type FRLite
- type RecognizedResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLibRecognizer ¶
type DLibRecognizer struct {
// contains filtered or unexported fields
}
func (*DLibRecognizer) Init ¶
func (dl *DLibRecognizer) Init() error
func (*DLibRecognizer) Predict ¶
func (dl *DLibRecognizer) Predict(data []byte, rects []image.Rectangle) (agePred []face.AgePredictResult, genderPred []face.GenderPredictResult, err error)
func (*DLibRecognizer) Recognize ¶
func (dl *DLibRecognizer) Recognize(data []byte) ([]*RecognizedResult, error)
func (*DLibRecognizer) SetFeatures ¶
func (dl *DLibRecognizer) SetFeatures(samples []face.Descriptor, cats []int32)
func (*DLibRecognizer) Stop ¶
func (dl *DLibRecognizer) Stop()
type FRLite ¶
type FRLite struct { DLibRecognizer // contains filtered or unexported fields }
func (*FRLite) Lite ¶
func (fr *FRLite) Lite(ctx *kernel.RequestContext, data []byte) ([]*face_rkg.RecognizedPerson, error)
Lite completes the core logic of face recognition
type RecognizedResult ¶
Click to show internal directories.
Click to hide internal directories.