| | |
| | | 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) |
| | | } |
| | |
| | | // 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) |