tracks

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTrackingSignals

func GetTrackingSignals(log *logging.Logger) (chan Track, error)

Types

type Species

type Species map[string]int32

func LoadSpeciesFromFile

func LoadSpeciesFromFile(filePath string) (Species, error)

LoadSpeciesFromFile loads species confidence levels from a JSON file

func (Species) MatchSpeciesWithConfidence

func (s Species) MatchSpeciesWithConfidence(species Species) bool

func (Species) ShouldTrigger

func (s Species) ShouldTrigger(trapSpecies, protectSpecies Species) bool

shouldTrigger will return if the trap should trigger based on the classifications, trapSpecies, and protectSpecies.

func (Species) String

func (c Species) String() string

type Track

type Track struct {
	Species
	Animals     string
	Confidence  int32
	BoundingBox [4]int32
	Motion      bool
}

Jump to

Keyboard shortcuts

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