Documentation ¶
Index ¶
- func CountMean(img [][][]float32) (mean, std float32)
- func TensorFromImg(img image.Image) (output *tf.Tensor, err error)
- func TensorFromMat(mat gocv.Mat) (output *tf.Tensor, err error)
- type Facenet
- func (fnet Facenet) BeginSession(self *Facenet) (err error)
- func (fnet Facenet) Close(self *Facenet) error
- func (fnet Facenet) ExtractFeatures(tensor *tf.Tensor) ([]float32, error)
- func (fnet Facenet) Normalize(tensor *tf.Tensor) (tensorout *tf.Tensor, err error)
- func (fnet Facenet) PrepareMat(img gocv.Mat) (output *tf.Tensor, err error)
- func (fnet Facenet) Preprocess(img image.Image) (output *tf.Tensor, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Facenet ¶
func NewFacenet ¶
func (Facenet) BeginSession ¶
func (Facenet) ExtractFeatures ¶
run the image through the model to generate embedding
func (Facenet) PrepareMat ¶
prepares a gocv.Mat with preprocessing before generating embedding, return a tensor containing processed image
Click to show internal directories.
Click to hide internal directories.