zhangmeng
2019-12-11 2f5f0c75f3257b4ea9c37df6d02e5598b975740f
main.go
@@ -15,7 +15,6 @@
   "golang.org/x/sys/unix"
   "basic.com/valib/gogpu.git"
   "basic.com/valib/gosdk.git"
   // "net/http"
   // _ "net/http/pprof"
)
@@ -28,6 +27,7 @@
   gpu     int
   shm     bool
   ruleIPC string
   soFile  string
)
const (
@@ -43,6 +43,8 @@
   flag.StringVar(&id, "id", util.FakeSdkID, "sdk id as ipc label")
   flag.IntVar(&gpu, "gpu", -1, "gpu index")
   flag.BoolVar(&shm, "shm", false, "use shm for performance")
   flag.StringVar(&soFile, "so-file", "./", "libcffmpeg.so path")
   // 人脸识别参数
   flag.IntVar(&util.SFI.DetectThrd, util.FaceDetectThread, util.SFI.DetectThrd, "face detect max thread count")
@@ -104,6 +106,7 @@
   util.FillParams(util.RuleIPC, util.ToRuleIPC)
   util.SetParams("-so-file=" + soFile)
   util.SetParams("-gpu=" + strconv.Itoa(gpu))
   if logit {
      util.SetParams("-logit")
@@ -158,6 +161,5 @@
   cancel()
   gosdk.Free()
   logo.Close()
}