counter

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 counter include object counter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrowdCount

func CrowdCount(d Counter, img *common.Image) ([]common.Keypoint, error)

CrowdCount returns object counter

Types

type Counter

type Counter interface {
	common.Estimator
	CrowdCount(img *common.Image) ([]common.Keypoint, error)
}

Counter represents Object Counter interface

type P2PNet

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

P2PNet represents p2pnet counter

func NewP2PNet

func NewP2PNet() *P2PNet

NewP2PNet returns a new P2PNet

func (*P2PNet) CrowdCount

func (d *P2PNet) CrowdCount(img *common.Image) ([]common.Keypoint, error)

CrowdCount implement Object Counter interface

func (*P2PNet) Destroy

func (d *P2PNet) Destroy()

Destroy free tracker

func (*P2PNet) LoadModel

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

LoadModel load model for detecter

func (*P2PNet) Pointer

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