From 466947c1eeda6938ab6ef11497f6c8a96a574920 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期三, 13 十一月 2019 14:46:57 +0800 Subject: [PATCH] targetLocation --- util/simpleCV.go | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/util/simpleCV.go b/util/simpleCV.go index 27e8196..bb34716 100644 --- a/util/simpleCV.go +++ b/util/simpleCV.go @@ -155,8 +155,6 @@ } } } - - func DrawPolygonOnImageForYolo(cameraId string, img protomsg.Image, results []structure.Result,url string) (maps map[string]interface{}, err0 error) { rook, _ := gocv.NewMatFromBytes(int(img.Height), int(img.Width), gocv.MatTypeCV8UC3, img.Data) @@ -170,6 +168,7 @@ // 鍒嗗壊鍖哄煙id闆嗗悎骞舵牴鎹甶d鏌ヨ鍖哄煙鐒跺悗鐢绘 for _,result := range results { polygonIds := strings.Split(result.AlarmPolygon,",") + logger.Info("鍖哄煙ID锛�",result.AlarmPolygon,polygonIds) for i := 0; i < len(polygonIds); i++ { polygon := getPolygonById(polygonIds[i],cameraId) if polygon.Polygon != "[]" && polygon.Polygon != ""{ -- Gitblit v1.8.0