zhangmeng
2019-12-19 4eaeabc9dab6e36d6b9e8e6f23a0a0870233384a
update
1个文件已修改
7 ■■■■■ 已修改文件
gohumantrack/gohumantrack.go 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gohumantrack/gohumantrack.go
@@ -179,12 +179,11 @@
        return nil, errors.New("create C images error")
    }
    defer C.free(cImgs)
    for k, v := range imgs {
        var ret C.int
    for _, v := range imgs {
        if v == nil {
            ret = C.fill_images(cImgs, C.int(h.batchSize), C.int(k), nil, 0, 0, 0)
            C.fill_images(cImgs, C.int(h.batchSize), C.int(k), nil, 0, 0, 0)
        } else {
            ret = C.fill_images(cImgs, C.int(h.batchSize), C.int(k), unsafe.Pointer(&v.Data[0]), C.int(v.Width), C.int(v.Height), C.int(v.Channel))
            C.fill_images(cImgs, C.int(h.batchSize), C.int(k), unsafe.Pointer(&v.Data[0]), C.int(v.Width), C.int(v.Height), C.int(v.Channel))
        }
    }