schema

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appearance

type Appearance struct {
	Transformation *tt.Transformation `xml:"Transformation,omitempty" json:"Transformation,omitempty"`

	Shape *ShapeDescriptor `xml:"Shape,omitempty" json:"Shape,omitempty"`

	Color *tt.ColorDescriptor `xml:"Color,omitempty" json:"Color,omitempty"`

	Class *ClassDescriptor `xml:"Class,omitempty" json:"Class,omitempty"`

	Extension *AppearanceExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	GeoLocation *tt.GeoLocation `xml:"GeoLocation,omitempty" json:"GeoLocation,omitempty"`

	VehicleInfo []*VehicleInfo `xml:"VehicleInfo,omitempty" json:"VehicleInfo,omitempty"`

	LicensePlateInfo *LicensePlateInfo `xml:"LicensePlateInfo,omitempty" json:"LicensePlateInfo,omitempty"`

	HumanFace *fc.HumanFace `xml:"HumanFace,omitempty" json:"HumanFace,omitempty"`

	HumanBody *bd.HumanBody `xml:"HumanBody,omitempty" json:"HumanBody,omitempty"`

	ImageRef string `xml:"ImageRef,omitempty" json:"ImageRef,omitempty"`

	Image []byte `xml:"Image,omitempty" json:"Image,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type AppearanceExtension

type AppearanceExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type AudioAnalyticsStream

type AudioAnalyticsStream struct {
	AudioDescriptor []*AudioDescriptor `xml:"AudioDescriptor,omitempty" json:"AudioDescriptor,omitempty"`

	Extension *AudioAnalyticsStreamExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type AudioAnalyticsStreamExtension

type AudioAnalyticsStreamExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type AudioDescriptor

type AudioDescriptor struct {
	Items []string `xml:",any" json:"items,omitempty"`

	UtcTime soap.XSDDateTime `xml:"UtcTime,attr,omitempty" json:"UtcTime,omitempty"`
}

type Behaviour

type Behaviour struct {
	Removed struct {
	} `xml:"Removed,omitempty" json:"Removed,omitempty"`

	Idle struct {
	} `xml:"Idle,omitempty" json:"Idle,omitempty"`

	Extension *BehaviourExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Speed float32 `xml:"Speed,omitempty" json:"Speed,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type BehaviourExtension

type BehaviourExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ClassDescriptor

type ClassDescriptor struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Class" json:"-"`

	ClassCandidate []struct {
		Type *ClassType `xml:"Type,omitempty" json:"Type,omitempty"`

		Likelihood float32 `xml:"Likelihood,omitempty" json:"Likelihood,omitempty"`
	} `xml:"ClassCandidate,omitempty" json:"ClassCandidate,omitempty"`

	Extension *ClassDescriptorExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	// ONVIF recommends to use this 'Type' element instead of 'ClassCandidate' and 'Extension' above for new design. Acceptable values are defined in tt:ObjectType.
	Type []*StringLikelihood `xml:"Type,omitempty" json:"Type,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ClassDescriptorExtension

type ClassDescriptorExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	OtherTypes []*OtherType `xml:"OtherTypes,omitempty" json:"OtherTypes,omitempty"`

	Extension *ClassDescriptorExtension2 `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ClassDescriptorExtension2

type ClassDescriptorExtension2 struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ClassType

type ClassType string
const (
	ClassTypeAnimal ClassType = "Animal"

	ClassTypeFace ClassType = "Face"

	ClassTypeHuman ClassType = "Human"

	ClassTypeVehical ClassType = "Vehical"

	ClassTypeOther ClassType = "Other"
)

type EventStream

type EventStream struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Event" json:"-"`

	NotificationMessage *wsnt.NotificationMessage `xml:"NotificationMessage,omitempty" json:"NotificationMessage,omitempty"`

	Extension *EventStreamExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`
}

type EventStreamExtension

type EventStreamExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type Frame

type Frame struct {
	PTZStatus *tt.PTZStatus `xml:"PTZStatus,omitempty" json:"PTZStatus,omitempty"`

	Transformation *tt.Transformation `xml:"Transformation,omitempty" json:"Transformation,omitempty"`

	Object []*Object `xml:"Object,omitempty" json:"Object,omitempty"`

	ObjectTree *ObjectTree `xml:"ObjectTree,omitempty" json:"ObjectTree,omitempty"`

	Extension *FrameExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	SceneImageRef string `xml:"SceneImageRef,omitempty" json:"SceneImageRef,omitempty"`

	SceneImage []byte `xml:"SceneImage,omitempty" json:"SceneImage,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`

	UtcTime soap.XSDDateTime `xml:"UtcTime,attr,omitempty" json:"UtcTime,omitempty"`

	Colorspace string `xml:"Colorspace,attr,omitempty" json:"Colorspace,omitempty"`

	Source string `xml:"Source,attr,omitempty" json:"Source,omitempty"`
}

type FrameExtension

type FrameExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	MotionInCells *MotionInCells `xml:"MotionInCells,omitempty" json:"MotionInCells,omitempty"`

	Extension *FrameExtension2 `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type FrameExtension2

type FrameExtension2 struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type LicensePlateInfo

type LicensePlateInfo struct {

	// A string of vehicle license plate number.
	PlateNumber *StringLikelihood `xml:"PlateNumber,omitempty" json:"PlateNumber,omitempty"`

	// A description of the vehicle license plate, e.g., "Normal", "Police", "Diplomat"
	PlateType *StringLikelihood `xml:"PlateType,omitempty" json:"PlateType,omitempty"`

	// Describe the country of the license plate, in order to avoid the same license plate number.
	CountryCode *StringLikelihood `xml:"CountryCode,omitempty" json:"CountryCode,omitempty"`

	// State province or authority that issue the license plate.
	IssuingEntity *StringLikelihood `xml:"IssuingEntity,omitempty" json:"IssuingEntity,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type Merge

type Merge struct {
	From []*ObjectId `xml:"from,omitempty" json:"from,omitempty"`

	To *ObjectId `xml:"to,omitempty" json:"to,omitempty"`
}

type MetadataStream

type MetadataStream struct {
	VideoAnalytics *VideoAnalyticsStream `xml:"VideoAnalytics,omitempty" json:"VideoAnalytics,omitempty"`

	PTZ *PTZStream `xml:"PTZ,omitempty" json:"PTZ,omitempty"`

	Event *EventStream `xml:"Event,omitempty" json:"Event,omitempty"`

	Extension *MetadataStreamExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`
}

type MetadataStreamExtension

type MetadataStreamExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	AudioAnalyticsStream *AudioAnalyticsStream `xml:"AudioAnalyticsStream,omitempty" json:"AudioAnalyticsStream,omitempty"`

	Extension *MetadataStreamExtension2 `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type MetadataStreamExtension2

type MetadataStreamExtension2 struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type MotionInCells

type MotionInCells struct {
	Items []string `xml:",any" json:"items,omitempty"`

	Columns int32 `xml:"Columns,attr,omitempty" json:"Columns,omitempty"`

	Rows int32 `xml:"Rows,attr,omitempty" json:"Rows,omitempty"`

	Cells []byte `xml:"Cells,attr,omitempty" json:"Cells,omitempty"`
}

type Object

type Object struct {
	*ObjectId

	Appearance *Appearance `xml:"Appearance,omitempty" json:"Appearance,omitempty"`

	Behaviour *Behaviour `xml:"Behaviour,omitempty" json:"Behaviour,omitempty"`

	Extension *ObjectExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Parent int32 `xml:"Parent,attr,omitempty" json:"Parent,omitempty"`
}

type ObjectExtension

type ObjectExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ObjectId

type ObjectId struct {
	ObjectId int32 `xml:"ObjectId,attr,omitempty" json:"ObjectId,omitempty"`
}

type ObjectTree

type ObjectTree struct {
	Rename []*Rename `xml:"Rename,omitempty" json:"Rename,omitempty"`

	Split []*Split `xml:"Split,omitempty" json:"Split,omitempty"`

	Merge []*Merge `xml:"Merge,omitempty" json:"Merge,omitempty"`

	Delete []*ObjectId `xml:"Delete,omitempty" json:"Delete,omitempty"`

	Extension *ObjectTreeExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ObjectTreeExtension

type ObjectTreeExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ObjectType

type ObjectType string
const (
	ObjectTypeAnimal ObjectType = "Animal"

	ObjectTypeHumanFace ObjectType = "HumanFace"

	ObjectTypeHuman ObjectType = "Human"

	ObjectTypeBicycle ObjectType = "Bicycle"

	ObjectTypeVehicle ObjectType = "Vehicle"

	ObjectTypeLicensePlate ObjectType = "LicensePlate"

	ObjectTypeBike ObjectType = "Bike"
)

type OtherType

type OtherType struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema OtherTypes" json:"-"`

	// Object Class Type
	Type string `xml:"Type,omitempty" json:"Type,omitempty"`

	// A likelihood/probability that the corresponding object belongs to this class. The sum of the likelihoods shall NOT exceed 1
	Likelihood float32 `xml:"Likelihood,omitempty" json:"Likelihood,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type PTZStream

type PTZStream struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema PTZ" json:"-"`

	PTZStatus *tt.PTZStatus `xml:"PTZStatus,omitempty" json:"PTZStatus,omitempty"`

	Extension *PTZStreamExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`
}

type PTZStreamExtension

type PTZStreamExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type PlateType

type PlateType string
const (
	PlateTypeNormal PlateType = "Normal"

	PlateTypePolice PlateType = "Police"

	PlateTypeDiplomat PlateType = "Diplomat"

	PlateTypeTemporary PlateType = "Temporary"
)

type Rename

type Rename struct {
	From *ObjectId `xml:"from,omitempty" json:"from,omitempty"`

	To *ObjectId `xml:"to,omitempty" json:"to,omitempty"`
}

type ShapeDescriptor

type ShapeDescriptor struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Shape" json:"-"`

	BoundingBox *tt.Rectangle `xml:"BoundingBox,omitempty" json:"BoundingBox,omitempty"`

	CenterOfGravity *tt.Vector `xml:"CenterOfGravity,omitempty" json:"CenterOfGravity,omitempty"`

	Polygon []*tt.Polygon `xml:"Polygon,omitempty" json:"Polygon,omitempty"`

	Extension *ShapeDescriptorExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type ShapeDescriptorExtension

type ShapeDescriptorExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type Split

type Split struct {
	From *ObjectId `xml:"from,omitempty" json:"from,omitempty"`

	To []*ObjectId `xml:"to,omitempty" json:"to,omitempty"`
}

type StringLikelihood

type StringLikelihood struct {
	Value string `xml:",chardata" json:",omitempty"`

	Likelihood float32 `xml:"Likelihood,attr,omitempty" json:"Likelihood,omitempty"`
}

type VehicleInfo

type VehicleInfo struct {
	Type *StringLikelihood `xml:"Type,omitempty" json:"Type,omitempty"`

	Brand *StringLikelihood `xml:"Brand,omitempty" json:"Brand,omitempty"`

	Model *StringLikelihood `xml:"Model,omitempty" json:"Model,omitempty"`

	Items []string `xml:",any" json:"items,omitempty"`
}

type VehicleType

type VehicleType string
const (
	VehicleTypeBus VehicleType = "Bus"

	VehicleTypeCar VehicleType = "Car"

	VehicleTypeTruck VehicleType = "Truck"

	VehicleTypeBicycle VehicleType = "Bicycle"

	VehicleTypeMotorcycle VehicleType = "Motorcycle"
)

type VideoAnalyticsStream

type VideoAnalyticsStream struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema VideoAnalytics" json:"-"`

	Frame *Frame `xml:"Frame,omitempty" json:"Frame,omitempty"`

	Extension *VideoAnalyticsStreamExtension `xml:"Extension,omitempty" json:"Extension,omitempty"`
}

type VideoAnalyticsStreamExtension

type VideoAnalyticsStreamExtension struct {
	XMLName xml.Name `xml:"http://www.onvif.org/ver10/schema Extension" json:"-"`

	Items []string `xml:",any" json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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