| | |
| | | func CountAreaObjs(a *structure.AreaMap,arg *structure.SdkData) { |
| | | |
| | | a.TargetNum = 0 |
| | | threshold := 70.0 // 相似度 |
| | | threshold := 0.0 // 相似度 |
| | | intersectionper := 20.0 // 占比 |
| | | size := 0.0 // 尺寸 |
| | | |
| | |
| | | if err := recover(); err != nil { |
| | | logger.Info("解包过程的异常捕获", err.(string)) |
| | | } |
| | | |
| | | }() |
| | | // 反序列化数据得到sdk入参 |
| | | m := protomsg.SdkMessage{} |
| | |
| | | return |
| | | } |
| | | for _, info := range Track.Result { |
| | | logger.Info("接收跟踪数据:",info.Id,info.Confidence) |
| | | logger.Info("接收跟踪数据:",info.Id,info.Confidence,info.Feature) |
| | | photoMap := structure.PhotoMap{structure.SourcePhoto{Id: strconv.Itoa(int(info.Id)),Score: float64(info.Confidence)*100,Rects: rectFormat(info.RcHuman), Type: "track"},structure.SourcePhoto{}} |
| | | //FacePush2Body(&photoMap,m.Tasklab.Sdkinfos) |
| | | logger.Info("组装后的跟踪数据:",photoMap) |
| | | arg.Photo = append(arg.Photo, photoMap) |
| | | } |
| | | args.Sdkdata = append(args.Sdkdata, &arg) |