From 11807f00d353d20041e3ccc6ccecc334998b6071 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期四, 19 十二月 2019 14:04:13 +0800 Subject: [PATCH] update --- gohumantrack/gohumantrack.go | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/gohumantrack/gohumantrack.go b/gohumantrack/gohumantrack.go index 10ab9bd..83d0eb0 100644 --- a/gohumantrack/gohumantrack.go +++ b/gohumantrack/gohumantrack.go @@ -51,7 +51,6 @@ import "C" import ( "errors" - "fmt" "math" "unsafe" ) @@ -187,9 +186,7 @@ } 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)) } - if int(ret) != k { - return nil, fmt.Errorf("fill C images error: %d", int(ret)) - } + } cRet := C.process(h.handle, cImgs, C.int(h.batchSize), h.result) -- Gitblit v1.8.0