mtcnn

package
v0.0.0-...-3f689ef Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: MIT 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, error)

Jump to

Keyboard shortcuts

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