派生自 libgowrapper/face

zhangmeng
2020-01-13 5018fec1d3ea2461c80615a98e9b8e43b47f9425
run.go
@@ -231,15 +231,6 @@
            continue
         }
         i := sdkhelper.UnpackImage(msg, f.typ, f.fnLogger)
         if i == nil {
            sdkhelper.EjectResult(nil, msg, out)
            continue
         }
         // conv to bgr24 and resize
         imgW, imgH := int(i.Width), int(i.Height)
         ret := f.handle.TrackerResize(imgW, imgH, nc.index)
         f.fnLogger("ResizeFaceTracker: cid: ", msg.Cid, " chan: ", nc.index, " wXh: ", imgW, "x", imgH, " result:", ret)
         wg.Add(1)
         go f.track(wg, &msg, nc.index, out)
      }
@@ -272,6 +263,9 @@
   // conv to bgr24 and resize
   imgW, imgH := int(i.Width), int(i.Height)
   ret := f.handle.TrackerResize(imgW, imgH, tchan)
   f.fnLogger("ResizeFaceTracker: cid: ", msg.Cid, " chan: ", tchan, " wXh: ", imgW, "x", imgH, " result:", ret)
   count, data, _ := f.handle.Run(i.Data, imgW, imgH, 3, tchan)
   sdkhelper.EjectResult(data, rMsg, out)