goface

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CropResizeImage

func CropResizeImage(img *tf.Tensor, bbox [][]float32, size []int32) (*tf.Tensor, error)

func TensorFromJpeg

func TensorFromJpeg(bytes []byte) (*tf.Tensor, error)

Types

type MtcnnDetector

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

func NewMtcnnDetector

func NewMtcnnDetector(modelFile string) (*MtcnnDetector, error)

func (*MtcnnDetector) Close

func (det *MtcnnDetector) Close()

func (*MtcnnDetector) Config

func (det *MtcnnDetector) Config(scaleFactor, minSize float64, scoreThresholds []float32)

func (*MtcnnDetector) DetectFaces

func (det *MtcnnDetector) DetectFaces(tensor *tf.Tensor) ([][]float32, [][]float32, []float32, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL