zhangmeng
2019-12-16 cd982114434e2fa2617ccdf02ea49e162c09a464
bug fixed
2个文件已添加
12个文件已修改
68 ■■■■■ 已修改文件
libgowrapper/face @ fcc639 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/gitpull.sh 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/gitpush.sh 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/humantrack @ 10177d 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/vehicle @ 803c42 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/yolo @ 1c07e9 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/libface.so 补丁 | 查看 | 原始文档 | blame | 历史
runtime/libvehicle.so 补丁 | 查看 | 原始文档 | blame | 历史
runtime/libyolo.so 补丁 | 查看 | 原始文档 | blame | 历史
work/sdk/facetrack.go 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
work/sdk/fdetect.go 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
work/sdk/humantrack.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
work/sdk/vdetect.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
work/sdk/ydetect.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libgowrapper/face
@@ -1 +1 @@
Subproject commit f1e6adc90c273250b24cdd0883ad45a94ba48940
Subproject commit fcc639d40cab8217c001870ce0ee834c440b3647
libgowrapper/gitpull.sh
New file
@@ -0,0 +1,12 @@
#!/bin/sh
cur=`pwd`
for v in `ls`; do
    if [ ! -d $cur"/"$v ]; then
        continue
    fi
    cd $v
    git pull
    cd ..
done
libgowrapper/gitpush.sh
New file
@@ -0,0 +1,14 @@
#!/bin/sh
cur=`pwd`
for v in `ls`; do
    if [ ! -d $cur"/"$v ]; then
        continue
    fi
    cd $v
    git add .
    git commit -m 'update'
    git push
    cd ..
done
libgowrapper/humantrack
@@ -1 +1 @@
Subproject commit e36c6d3247a5c782de39b9174000555099d9bdb0
Subproject commit 10177de713116924d36fe6da555808a54ffe2c5c
libgowrapper/vehicle
@@ -1 +1 @@
Subproject commit 2d3cff9c46ab33fad5dfdb1e0c40a7f77074ffbd
Subproject commit 803c42b87028b139e4ac87f920cb479d5ba0c0f2
libgowrapper/yolo
@@ -1 +1 @@
Subproject commit c01f7d960ac5ec3ec37f8434de099166475cdac5
Subproject commit 1c07e97d2981ae1daadc55224d59caa1b91ee10f
runtime/libface.so
Binary files differ
runtime/libvehicle.so
Binary files differ
runtime/libyolo.so
Binary files differ
work/sdk/facetrack.go
@@ -109,10 +109,10 @@
                }
                // conv to bgr24 and resize
                imgW, imgH := int(i.Width), int(i.Height)
                ret := e.fnTrackerResize(e.handle, e.ftrackChannels[rMsg.Msg.Cid], imgW, imgH)
                logo.Infof("ResizeFaceTracker: cid:%s, chan:%d, wXh:%d x %d ,result:%d\n",
                    rMsg.Msg.Cid, e.ftrackChannels[rMsg.Msg.Cid], imgW, imgH, ret)
                go e.detectTrackOneChn(ctx, e.ftrackChans[rMsg.Msg.Cid], out, typ, e.ftrackChannels[rMsg.Msg.Cid])
                ret := e.fnTrackerResize(e.handle, imgW, imgH, chn)
                logo.Infof("ResizeFaceTracker: cid:%s, chan:%d, wXh:%d x %d ,result:%t\n",
                    rMsg.Msg.Cid, chn, imgW, imgH, ret)
                go e.detectTrackOneChn(ctx, e.ftrackChans[rMsg.Msg.Cid], out, typ, chn)
                e.ftrackChans[rMsg.Msg.Cid] <- rMsg
            }
        }
work/sdk/fdetect.go
@@ -31,7 +31,7 @@
    chnLock         sync.Mutex
    handle          interface{}
    fnInit          func() interface{}
    fnInit          func(func(...interface{})) interface{}
    fnFree          func(interface{})
    fnRun           func(interface{}, []byte, int, int, int, int) []sdkstruct.CFaceResult
    fnTrackerResize func(interface{}, int, int, int) bool
@@ -70,7 +70,7 @@
        sampleSize:      samp,
        handle:          nil,
        fnInit:          fnInit.(func() interface{}),
        fnInit:          fnInit.(func(func(...interface{})) interface{}),
        fnFree:          fnFree.(func(interface{})),
        fnRun:           fnRun.(func(interface{}, []byte, int, int, int, int) []sdkstruct.CFaceResult),
        fnTrackerResize: fnTrackerResize.(func(interface{}, int, int, int) bool),
@@ -97,9 +97,9 @@
        gpu = gogpu.ValidGPU(2048)
    }
    e.handle = e.fnInit()
    e.handle = e.fnInit(logo.Infoln)
    if !e.fnTracker(e.handle, 1280, 720, e.faceNum, e.interval, e.sampleSize, e.threads, gpu) {
    if !e.fnTracker(e.handle, 1280, 720, e.faceNum, e.interval, 720, e.threads, gpu) {
        logo.Errorln("FACE TRACKER CREATE ERROR")
    }
    logo.Infoln("Face Tracker Use GPU: ", gpu)
work/sdk/humantrack.go
@@ -21,7 +21,7 @@
    flag      int
    handle       interface{}
    fnInit       func(int, int, int) interface{}
    fnInit       func(int, int, int, func(...interface{})) interface{}
    fnFree       func(interface{})
    fnRun        func(interface{}, []byte, int, int, int) []sdkstruct.FgResult
    fnProcess    func(interface{}, []sdkstruct.SDKImage) ([]sdkstruct.FgResult, error)
@@ -52,7 +52,7 @@
        flag:      flag,
        handle:       nil,
        fnInit:       fnInit.(func(int, int, int) interface{}),
        fnInit:       fnInit.(func(int, int, int, func(...interface{})) interface{}),
        fnFree:       fnFree.(func(interface{})),
        fnRun:        fnRun.(func(interface{}, []byte, int, int, int) []sdkstruct.FgResult),
        fnProcess:    fnProc.(func(interface{}, []sdkstruct.SDKImage) ([]sdkstruct.FgResult, error)),
@@ -71,7 +71,7 @@
    if gpu == -1 {
        gpu = gogpu.ValidGPU(2048)
    }
    h := t.fnInit(gpu, t.batchSize, t.flag)
    h := t.fnInit(gpu, t.batchSize, t.flag, logo.Infoln)
    logo.Infoln("HumanTrack USE GPU: ", gpu)
    if h == nil {
work/sdk/vdetect.go
@@ -19,7 +19,7 @@
    modelPath  string
    handle interface{}
    fnInit func(int, int, string, string) interface{}
    fnInit func(int, int, string, string, func(...interface{})) interface{}
    fnFree func(interface{})
    fnRun  func(interface{}, []byte, int, int, int, int, int, int, int) []sdkstruct.CVehicleITSResult
}
@@ -43,7 +43,7 @@
        modelPath:  model,
        handle: nil,
        fnInit: fnInit.(func(int, int, string, string) interface{}),
        fnInit: fnInit.(func(int, int, string, string, func(...interface{})) interface{}),
        fnFree: fnFree.(func(interface{})),
        fnRun:  fnRun.(func(interface{}, []byte, int, int, int, int, int, int, int) []sdkstruct.CVehicleITSResult),
    }
@@ -51,7 +51,7 @@
// Init impl
func (d *VehicleDetector) Init() bool {
    h := d.fnInit(2, 0, d.licSrvPath, d.modelPath)
    h := d.fnInit(2, 0, d.licSrvPath, d.modelPath, logo.Infoln)
    if h == nil {
        logo.Errorln("INIT VEHICLE SDK ERROR")
        return false
work/sdk/ydetect.go
@@ -28,7 +28,7 @@
    cond  bool
    handle interface{}
    fnInit func(string, string, string, int) interface{}
    fnInit func(string, string, string, int, func(...interface{})) interface{}
    fnFree func(interface{})
    fnRun  func(interface{}, string, []byte, int, int, int, float32, int) ([]sdkstruct.CObjTrackInfo, []sdkstruct.CObjTrackInfo)
}
@@ -57,7 +57,7 @@
        cond:    false,
        handle: nil,
        fnInit: fnInit.(func(string, string, string, int) interface{}),
        fnInit: fnInit.(func(string, string, string, int, func(...interface{})) interface{}),
        fnFree: fnFree.(func(interface{})),
        fnRun:  fnRun.(func(interface{}, string, []byte, int, int, int, float32, int) ([]sdkstruct.CObjTrackInfo, []sdkstruct.CObjTrackInfo)),
    }
@@ -70,7 +70,7 @@
    if gpu == -1 {
        gpu = gogpu.ValidGPU(2048)
    }
    h := y.fnInit(y.cfg, y.weights, y.name, gpu)
    h := y.fnInit(y.cfg, y.weights, y.name, gpu, logo.Infoln)
    logo.Infoln("YOLO USE GPU: ", gpu)
    if h == nil {