detecter

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(d Detecter, img *common.Image) ([]common.ObjectInfo, error)

Detect detect pose rect using detecter

Types

type Detecter

type Detecter interface {
	common.Estimator
	HasKeypoints() bool
	Detect(img *common.Image) ([]common.ObjectInfo, error)
}

Detecter represents deteter interface

type OpenPose

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

OpenPose represents utralight detecter

func NewOpenPose

func NewOpenPose() *OpenPose

NewOpenPose returns a new OpenPose

func (*OpenPose) Destroy

func (d *OpenPose) Destroy()

Destroy free detecter

func (*OpenPose) Detect

func (d *OpenPose) Detect(img *common.Image) ([]common.ObjectInfo, error)

Detect implement Detecter interface

func (*OpenPose) HasKeypoints

func (d *OpenPose) HasKeypoints() bool

HasKeypoints implement Detecter interface

func (*OpenPose) LoadModel

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

LoadModel load model for detecter

func (*OpenPose) Pointer

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

Pointer implement Estimator interface

type Ultralight

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

Ultralight represents utralight detecter

func NewUltralight

func NewUltralight() *Ultralight

NewUltralight returns a new Utralight

func (*Ultralight) Destroy

func (d *Ultralight) Destroy()

Destroy free detecter

func (*Ultralight) Detect

func (d *Ultralight) Detect(img *common.Image) ([]common.ObjectInfo, error)

Detect implement Detecter interface

func (*Ultralight) HasKeypoints

func (d *Ultralight) HasKeypoints() bool

HasKeypoints implement Detecter interface

func (*Ultralight) LoadModel

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

LoadModel load model for detecter

func (*Ultralight) Pointer

func (d *Ultralight) 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