From 1f18ac5866a75db56657155bd10b2cddf0b1566c Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期一, 01 七月 2019 18:40:17 +0800 Subject: [PATCH] 该测试 --- main.go | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/main.go b/main.go index 9314e09..19d3756 100644 --- a/main.go +++ b/main.go @@ -10,24 +10,24 @@ "gocv.io/x/gocv" "image" "image/color" - "log" "os" "ruleprocess/insertdata" "ruleprocess/ruleserver" "ruleprocess/util" + "sync" ) func main() { - //wg := sync.WaitGroup{} - //wg.Add(1) - //go ruleserver.TimeTicker() - //nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1) - //wg.Wait() - resp,err := DrawPolygonOnImage() - if err != nil { - log.Println("鐢绘鎴栬�呬笂浼犳湁闂") - } - log.Println(resp["fileUrl"].(string)) + wg := sync.WaitGroup{} + wg.Add(1) + go ruleserver.TimeTicker() + nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1) + wg.Wait() + //resp,err := DrawPolygonOnImage() + //if err != nil { + // log.Println("鐢绘鎴栬�呬笂浼犳湁闂") + //} + //log.Println(resp["fileUrl"].(string)) } func nReciever(url string, m deliver.Mode, count int) { c := deliver.NewServer(m, url) @@ -117,7 +117,6 @@ arg.IsStatic = false if len(sdkinfo.Sdkdata) > 1 { // 澶т簬1鎵嶆湁鏁版嵁 - fmt.Println("----------------------------------------------------",m.Cid) yoloParam := protomsg.ParamYoloObj{} err = proto.Unmarshal(sdkinfo.Sdkdata, &yoloParam) if err != nil { -- Gitblit v1.8.0