From 5018fec1d3ea2461c80615a98e9b8e43b47f9425 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 13 一月 2020 10:51:38 +0800
Subject: [PATCH] debug

---
 run.go |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/run.go b/run.go
index adda50a..956247b 100644
--- a/run.go
+++ b/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)

--
Gitblit v1.8.0