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: ? 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 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