panlei
2019-07-12 2a7ac2e657ea58c17eb3ad96e0183283b4448514
util/simpleCV.go
@@ -166,10 +166,10 @@
   // 分割区域id集合并根据id查询区域然后画框
   for _,result := range results  {
      polygonIds := strings.Split(result.AlarmPolygon,"")
      polygonIds := strings.Split(result.AlarmPolygon,",")
      logger.Info("-----------------------看看报警区域id:",polygonIds)
      for i := 0; i < len(polygonIds)-1; i++ {
         polygon := getPolygonById(polygonIds[i],cameraId)
         logger.Info("------------------------瞅瞅根据id捡出来区域值",polygon.Polygon)
         if polygon.Polygon != "" {
            DrawAPolygon(&rook,polygon.Polygon,red)
         }