zhangmeng
2019-12-17 00d07f58cd88a1e9dd13deed75ad1af3db6ebcf6
work/sdk/humantrack.go
@@ -52,6 +52,8 @@
      batchSize: batchSize,
      flag:      flag,
      list: NewLockList(6),
      handle:       nil,
      fnInit:       fnInit.(func(int, int, int, func(...interface{})) interface{}),
      fnFree:       fnFree.(func(interface{})),
@@ -102,7 +104,9 @@
   // }
   // images = append(images, img)
   res := t.fnRun(t.handle, i.Data, imgW, imgH, 3)
   if res != nil {
   if res == nil {
      logo.Errorln("HUMAN TRACKER RUN ERROR")
      ejectResult(nil, rMsg, out)
      return
   }
@@ -111,7 +115,7 @@
   result := protomsg.HumanTrackResult{Result: hr[0]}
   data, err := proto.Marshal(&result)
   if err != nil {
      logo.Errorln("HUMAN TRACKER MARSHAL PROTO PLATE IDS ERROR", err)
      logo.Errorln("HUMAN TRACKER MARSHAL PROTO ERROR", err)
      data = nil
   }
   ejectResult(data, rMsg, out)