| | |
| | | package structure |
| | | |
| | | import "basic.com/pubsub/protomsg.git" |
| | | import ( |
| | | "basic.com/pubsub/protomsg.git" |
| | | ) |
| | | |
| | | // 每个目标的参数:相似度,占比,尺寸 |
| | | type Arg struct { |
| | | Id uint64 |
| | | Uuid string |
| | | Score float64 // 区域内的目标的相似度 |
| | | Proportion float64 // 区域内的目标的占比 |
| | | Size float64 // 区域内的目标的尺寸 |
| | | AreaJson string // 所属区域 |
| | | IsYolo bool // 是否是yolo数据 |
| | | Location Rect // 记下每个目标的位置参数,最后给结果装配人脸数据的时候用的到 |
| | | Feature []byte |
| | |
| | | TargetNum int // 区域内目标数量 |
| | | Args []*Arg // 区域内目标集合 |
| | | FilterData []*Arg // 过滤后区域内目标集合 |
| | | AlarmObj []*Arg // 区域内最后满足规则的目标 |
| | | Time string // 当前时间(用以匹配时间规则) |
| | | IsEffective bool // 规则中是否用到了此区域 |
| | | KeepRight bool // 是否靠右行 |
| | | IsStatic bool // 是否静止 |
| | | } |
| | | |
| | | // sdk输出的图片上单个目标的数据 |