package model
|
|
type pushDataInfo struct {
|
SourceData interface{} `json:"sourceData"`
|
PicMaxImages [][]byte `json:"picMaxImages"`
|
PicSmImages [][]byte `json:"picSmImages"`
|
}
|
|
var PushDataInfo = &pushDataInfo{
|
SourceData: nil,
|
PicMaxImages: nil,
|
PicSmImages: nil,
|
}
|
|
type BaseCompareInfo struct {
|
BwType string `json:"bwType"`
|
TableId string `json:"tableId"`
|
TableName string `json:"tableName"`
|
CompareScore float32 `json:"compareScore"`
|
OriginScore float32 `json:"originScore"`
|
TargetId string `json:"targetId"`
|
TargetPicUrl string `json:"targetPicUrl"`
|
MonitorLevel string `json:"monitorLevel"`
|
Content string `json:"content"`
|
DbLabel string `json:"labels"`
|
}
|
|
type AlarmRule struct {
|
RuleId string `json:"ruleId"`
|
RuleText string `json:"ruleText"`
|
AlarmLevel string `json:"alarmLevel"`
|
}
|
|
type Point struct {
|
X int32 `json:"x"`
|
Y int32 `json:"y"`
|
}
|
|
type Points struct {
|
TopLeft Point `json:"topLeft"`
|
BottomRight Point `json:"bottomRight"`
|
}
|
|
type TargetInfo struct {
|
TargetId string `json:"targetId"`
|
TargetScore float64 `json:"targetScore"`
|
FrontFaceScore float64 `json:"frontFaceScore"`
|
ImgQuality float64 `json:"imgQuality"`
|
FaceQuality float64 `json:"faceQuality"`
|
TargetType string `json:"targetType"`
|
Feature string `json:"-"`
|
PicSmUrl string `json:"picSmUrl"`
|
TargetLocation Points `json:"targetLocation"`
|
Attribute string `json:"attribute"`
|
}
|
|
type PicWidHei struct {
|
PicW int `json:"picW"`
|
PicH int `json:"picH"`
|
}
|
|
type PushDataInfoV2 struct {
|
CameraId string `json:"cameraId"`
|
CameraFloor string `json:"cameraFloor"` //摄像机楼层
|
Direction string `json:"direction"` // 摄像机运行方向 up or down
|
PicDate string `json:"picDate"`
|
PicId string `json:"picId"`
|
DataSource string `json:"dataSource"`
|
PicMaxImages [][]byte `json:"picMaxImages"`
|
PicSmImages [][]byte `json:"picSmImages"`
|
}
|
|
type TaskResultInfoV2 struct {
|
Id string `json:"id"`
|
AnalyServerId string `json:"analyServerId"`
|
AnalyServerName string `json:"analyServerName"`
|
AnalyServerIp string `json:"analyServerIp"`
|
ClusterId string `json:"clusterId"`
|
CameraId string `json:"cameraId"`
|
CameraAddr string `json:"cameraAddr"` // 摄像机地址
|
CameraName string `json:"cameraName"` // 摄像机名称
|
CommunityId string `json:"communityId"`
|
CommunityName string `json:"communityName"`
|
CameraLocation CameraLocation `json:"cameraLocation"`
|
DocumentNumber string `json:"documentNumber"` // 档案编号
|
OrgId string `json:"orgId"` //机构名称
|
OrgName string `json:"orgName"` //机构名称
|
PicDate string `json:"picDate"`
|
PicId string `json:"picId"`
|
PicMaxUrl string `json:"picMaxUrl"`
|
PicWH PicWidHei `json:"picWH"`
|
TaskId string `json:"taskId"`
|
TaskName string `json:"taskName"`
|
SdkName string `json:"sdkName"`
|
Content string `json:"content"`
|
ShowLabels string `json:"showLabels"`
|
OtherLabels string `json:"otherLabels"`
|
VideoUrl string `json:"videoUrl"`
|
IsAlarm bool `json:"isAlarm"`
|
IsAckAlarm bool `json:"isAckAlarm"`
|
IsDelete bool `json:"isDelete"`
|
IsKeyPerson bool `json:"isKeyPerson"`
|
KeyPersonType []string `json:"keyPersonType"`
|
AlarmRules []AlarmRule `json:"alarmRules"`
|
BaseInfo *BaseCompareInfo `json:"baseInfo"`
|
TargetInfo TargetInfo `json:"targetInfo"`
|
DataSource string `json:"dataSource"` // 数据来源:摄像机, 数据栈
|
}
|
|
type CameraLocation struct {
|
Building string `json:"building"`
|
Unit string `json:"unit"`
|
Pos string `json:"pos"`
|
Floor string `json:"floor"`
|
Direction string `json:"direction"`
|
}
|
|
func (cl *CameraLocation) Join() string {
|
return cl.Building + cl.Unit + cl.Pos + cl.Floor
|
}
|
|
// es视频分析的数据结构
|
type ESInfoV2 struct {
|
TaskResultInfoV2
|
Version string `json:"version"`
|
UpdateTime string `json:"updateTime"`
|
LikeDate string `json:"likeDate"`
|
}
|