派生自 libgowrapper/face

zhangmeng
2020-01-13 aa25f30d2d5dee9134ffb48885bbe9f3be6dc4ee
run.go
@@ -28,11 +28,11 @@
   shm                 bool
   ipc2Rule            string
   ruleMsgMaxCacheSize int
   reserved            map[string]string
   reserved            map[string]interface{}
}
// Create create sdk
func Create(config string, typ, id string, gpu int, shm bool, ipc2Rule string, ruleMaxSize int, fn func(...interface{}), reserved map[string]string) interface{} {
func Create(config string, typ, id string, gpu int, shm bool, ipc2Rule string, ruleMaxSize int, fn func(...interface{}), reserved map[string]interface{}) interface{} {
   handle := NewSDK(fn)
   if handle == nil {
@@ -260,7 +260,7 @@
         if rMsg.Tasklab != nil {
            id, name = rMsg.Tasklab.Taskid, rMsg.Tasklab.Taskname
         }
         f.fnLogger("CAMERAID: ", rMsg.Cid, " TASKID: ", id, " TASKNAME: ", name, " DETECT ", f.typ, " COUNT: ", count)
         f.fnLogger("Chan:", dtchn, "CAMERAID: ", rMsg.Cid, " TASKID: ", id, " TASKNAME: ", name, " DETECT ", f.typ, " COUNT: ", count)
         sc++
         if sc == 25 {