From 2d78b3ae67a7faa0425849f79885ea0154ceb9e2 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 01 七月 2019 18:03:36 +0800
Subject: [PATCH] 处理一下规则的不规范问题
---
main.go | 37 +++++++++++++++----------------------
1 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/main.go b/main.go
index d15b8c0..5f43081 100644
--- a/main.go
+++ b/main.go
@@ -1,40 +1,33 @@
package main
import (
+ "basic.com/pubsub/protomsg.git"
+ "basic.com/valib/deliver.git"
"bufio"
"bytes"
- "encoding/json"
- "errors"
"fmt"
+ "github.com/golang/protobuf/proto"
"gocv.io/x/gocv"
"image"
"image/color"
- "io"
- "log"
- "mime/multipart"
- "net/http"
"os"
"ruleprocess/insertdata"
"ruleprocess/ruleserver"
"ruleprocess/util"
- "time"
-
- "basic.com/pubsub/protomsg.git"
- "basic.com/valib/deliver.git"
- "github.com/golang/protobuf/proto"
+ "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)
@@ -298,7 +291,7 @@
// return nil, err
// }
return nil, nil
- }
+ //}
}
// 鎶婂浘鐗囪浆鎴愪簩杩涘埗娴�
--
Gitblit v1.8.0