Documentation ¶
Overview ¶
Package dahuaevents contains structs for Dahua events.
Index ¶
- Constants
- type Action
- type CrossLineDetection
- type CrossRegionDetection
- type Detection
- type DetectionFace
- type DetectionManList
- type DetectionObject
- type DetectionObjectCarWindow
- type IntelliFrame
- type InterVideoAccess
- type LeFunctionStatusSync
- type LeftDetection
- type LoginFailure
- type ManNumDetection
- type NTPAdjustTime
- type NewFile
- type NumberStat
- type QueueNumDetection
- type RtspSessionDisconnect
- type SceneChange
- type SmartMotionHuman
- type SystemState
- type TakenAwayDetection
- type TimeChange
- type VideoMotion
- type WanderDetection
Constants ¶
View Source
const ( CodeCrossLineDetection = "CrossLineDetection" CodeCrossRegionDetection = "CrossRegionDetection" CodeFaceDetection = "FaceDetection" CodeIntelliFrame = "IntelliFrame" CodeInterVideoAccess = "InterVideoAccess" CodeLeFunctionStatusSync = "LeFunctionStatusSync" CodeLeftDetection = "LeftDetection" CodeLoginFailure = "LoginFailure" CodeManNumDetection = "ManNumDetection" CodeNTPAdjustTime = "NTPAdjustTime" CodeNewFile = "NewFile" CodeNumberStat = "NumberStat" CodeQueueNumDetection = "QueueNumDetection" CodeReboot = "Reboot" CodeRtspSessionDisconnect = "RtspSessionDisconnect" CodeSceneChange = "SceneChange" CodeSmartMotionHuman = "SmartMotionHuman" CodeStorageChange = "StorageChange" CodeTakenAwayDetection = "TakenAwayDetection" CodeTimeChange = "TimeChange" CodeVideoMotion = "VideoMotion" CodeVideoMotionInfo = "VideoMotionInfo" CodeWanderDetection = "WanderDetection" CodeSystemState = "SystemState" )
View Source
const ( ActionStart = "Start" ActionStop = "Stop" ActionPulse = "Pulse" ActionState = "State" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrossRegionDetection ¶
type CrossRegionDetection = Detection
CrossRegionDetection is "Intrusion".
type Detection ¶
type Detection struct { AreaID int `json:"AreaID"` CfgRuleID int `json:"CfgRuleId"` // Action can be "Cross", "". Action string `json:"Action"` // Class can be "Normal", "FaceDetection", "NumberStat". Class string `json:"Class"` EnteredNumber int `json:"EnteredNumber"` CountInGroup int `json:"CountInGroup"` DetectRegion [4][2]int `json:"DetectRegion"` // Direction can be "Enter", "Leave", "LeftToRight", "RightToLeft". Direction string `json:"Direction"` EventID int `json:"EventID"` EventSeq int `json:"EventSeq"` ExitedNumber int `json:"ExitedNumber"` // Faces is used when Class is "FaceDetection". Faces []DetectionFace `json:"Faces"` FrameSequence int `json:"FrameSequence"` GroupID int `json:"GroupID"` // ManList is used when Class is "NumberStat". ManList []DetectionManList `json:"ManList"` Mark int `json:"Mark"` Name string `json:"Name"` Number int `json:"Number"` Object DetectionObject `json:"Object"` Objects []DetectionObject `json:"Objects"` Pts float64 `json:"PTS"` PresetID int `json:"PresetID"` Priority int `json:"Priority"` RuleID int `json:"RuleID"` RuleID0 int `json:"RuleId"` Source float64 `json:"Source"` // Type can be "ExitOver", "". Type string `json:"Type"` Utc int `json:"UTC"` Utcms int `json:"UTCMS"` }
type DetectionFace ¶
type DetectionManList ¶
type DetectionManList struct {
BoundingBox [4]int `json:"BoundingBox"`
}
type DetectionObject ¶
type DetectionObject struct { // Action can be "Appear". Action string `json:"Action"` BoundingBox [4]int `json:"BoundingBox"` BrandYear int `json:"BrandYear"` CarLogoIndex int `json:"CarLogoIndex"` CarWindow DetectionObjectCarWindow `json:"CarWindow"` // Category can be "Unknown". Category string `json:"Category"` Center [2]int `json:"Center"` Confidence int `json:"Confidence"` FrameSequence int `json:"FrameSequence"` LowerBodyColor [4]int `json:"LowerBodyColor"` MainColor [4]int `json:"MainColor"` ObjectID int `json:"ObjectID"` // ObjectType can be "Human", "Vehicle", "HumanFace". ObjectType string `json:"ObjectType"` RelativeID int `json:"RelativeID"` SerialUUID string `json:"SerialUUID"` Source float64 `json:"Source"` Speed int `json:"Speed"` SpeedTypeInternal int `json:"SpeedTypeInternal"` SubBrand int `json:"SubBrand"` // Text can be "Unknown". Text string `json:"Text"` CarLenMode int `json:"carLenMode"` CarLength int `json:"carLength"` }
type DetectionObjectCarWindow ¶
type DetectionObjectCarWindow struct {
BoundingBox [4]int `json:"BoundingBox"`
}
type IntelliFrame ¶
type IntelliFrame struct { // Action can be "Start", "Stop". Action string `json:"Action"` }
type InterVideoAccess ¶
type InterVideoAccess struct { // Type can be "WebLogin", "WebAllLogout". Type string `json:"Type"` }
type LeFunctionStatusSync ¶
type LoginFailure ¶
type NTPAdjustTime ¶
type NewFile ¶
type NewFile struct { CountInGroup int `json:"CountInGroup"` // Event can be "CrossRegionDetection", "FaceDetection". Event string `json:"Event"` File string `json:"File"` GroupID int `json:"GroupID"` Index int `json:"Index"` MailTimeout int `json:"MailTimeout"` Size int `json:"Size"` // StoragePoint can be "Temporary", "NULL". StoragePoint string `json:"StoragePoint"` }
type RtspSessionDisconnect ¶
type SceneChange ¶
type SmartMotionHuman ¶
type SystemState ¶
type SystemState struct { // State can be "Active". State string `json:"State"` }
type TakenAwayDetection ¶
type TakenAwayDetection = Detection
TakenAwayDetection is "Missing Object".
type TimeChange ¶
type VideoMotion ¶
Click to show internal directories.
Click to hide internal directories.