peoplecounting

package
v0.0.0-...-4ba8117 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeopleCountingType       = "PeopleCounting"
	ScenechangedetectionType = "scenechangedetection"
	ShelteralarmType         = "shelteralarm"
)

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, socket string, wError, wCamera *log.Logger) <-chan *Event

Listen function to listen events

Types

type Event

type Event struct {
	ID   string
	Data interface{}
}

type EventChildCounting

type EventChildCounting struct {
	XMLName xml.Name `xml:"childCounting"`
	Enter   int64    `xml:"enter"`
	Exit    int64    `xml:"exit"`
}

EventChildCounting struct

type EventNotificationAlert

type EventNotificationAlert struct {
	XMLName          xml.Name `xml:"EventNotificationAlert"`
	ChannelID        int      `xml:"channelID"`
	DateTime         string   `xml:"dateTime"`
	EventType        string   `xml:"eventType"`
	EventDescription string   `xml:"eventDescription"`
}

EventNotificationAlert struct

type EventNotificationAlertPeopleConting

type EventNotificationAlertPeopleConting struct {
	*EventNotificationAlert
	DuplicatePeople int                  `xml:"duplicatePeople"`
	PeopleCounting  *EventPeopleCounting `xml:"peopleCounting"`
	ChildCounting   *EventChildCounting  `xml:"childCounting"`
}

EventNotificationAlertPeopleConting struct

type EventPeopleCounting

type EventPeopleCounting struct {
	XMLName xml.Name `xml:"peopleCounting"`
	// Xmlns              string `xml:"xmlns,attr"`
	StatisticalMethods string `xml:"statisticalMethods"`
	// RealTime           RealTime
	// TimeRange          TimeRange
	Enter int64 `xml:"enter"`
	Exit  int64 `xml:"exit"`
	// Pass      int `xml:"pass,chardata"`
	RegionsID int `xml:"regionsID"`
}

EventPeopleCounting struct

type RealTime

type RealTime struct {
	Time string `xml:"time"`
}

RealTime struct

type TimeRange

type TimeRange struct {
	StartTime string `xml:"startTime"`
	EndTime   string `xml:"endTime"`
}

TimeRange struct

Jump to

Keyboard shortcuts

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