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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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