eye

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package eye include eye status detector

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClosed

func IsClosed(r Detecter, img *common.Image, faceRect common.Rectangle) (bool, error)

IsClosed check whether eyes are closed

Types

type Detecter

type Detecter interface {
	common.Estimator
	IsClosed(img *common.Image, face common.Rectangle) (bool, error)
}

Detecter represents Eye Detector interface

type Lenet

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

Lenet represents Lenet detecter

func NewLenet

func NewLenet() *Lenet

NetLenet returns a new Lenet detecter

func (*Lenet) Destroy

func (d *Lenet) Destroy()

Destroy implement Recognizer interface

func (*Lenet) IsClosed

func (d *Lenet) IsClosed(img *common.Image, faceRect common.Rectangle) (bool, error)

IsClosed implement Eye Detecter interface

func (*Lenet) LoadModel

func (d *Lenet) LoadModel(modelPath string) error

LoadModel implement Recognizer interface

func (*Lenet) Pointer

func (d *Lenet) Pointer() unsafe.Pointer

Pointer implement Estimator interface

Jump to

Keyboard shortcuts

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