util/simpleCV.go
@@ -9,7 +9,7 @@ "image/color" "os" "ruleprocess/cache" "ruleprocess/logger" "basic.com/valib/logger.git" "ruleprocess/ruleserver" "strings" ) @@ -170,7 +170,8 @@ logger.Info("-----------------------看看报警区域id:",polygonIds) for i := 0; i < len(polygonIds)-1; i++ { polygon := getPolygonById(polygonIds[i],cameraId) if polygon.Polygon != "[]" { if polygon.Polygon != "[]" && polygon.Polygon != ""{ logger.Debug("所画区域:",polygon.Polygon) DrawAPolygon(&rook,polygon.Polygon,yellow) } }