From d8d2bc7b4cf8e4a1f2b2a325d2ca02f0eb409d9c Mon Sep 17 00:00:00 2001 From: zhangmeng <zhangmeng@aiotlink.com> Date: 星期四, 19 十二月 2019 16:25:24 +0800 Subject: [PATCH] up --- gohumantrack/gohumantrack.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gohumantrack/gohumantrack.go b/gohumantrack/gohumantrack.go index ac304da..3f9f4f7 100644 --- a/gohumantrack/gohumantrack.go +++ b/gohumantrack/gohumantrack.go @@ -120,7 +120,7 @@ p := C.c_human_tracker_create(C.int(gpu), C.int(batchSize), C.int(flag)) if p != nil { res := C.init_fgres(C.int(batchSize)) - return &HumanTracker{p, res, batchSize} + return &HumanTracker{p, res, batchSize, nil} } return nil } @@ -196,7 +196,7 @@ logo.Infoln("batch~~~~~~", k, " image: ", v) if v == nil { if h.fakeImage == nil { - h.fakeImage = C.create_fake_image(wid * hei * chn) + h.fakeImage = C.create_fake_image(C.int(wid * hei * chn)) } C.fill_images(cImgs, C.int(h.batchSize), C.int(k), h.fakeImage, C.int(wid), C.int(hei), C.int(chn)) } else { -- Gitblit v1.8.0