From 282b010fe2f2ff8321ffd40419345365bf45d8ab Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期四, 12 十二月 2019 10:15:49 +0800 Subject: [PATCH] bug fixed --- work/sdk/vdetect.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/work/sdk/vdetect.go b/work/sdk/vdetect.go index 2c3f074..00c6a38 100644 --- a/work/sdk/vdetect.go +++ b/work/sdk/vdetect.go @@ -19,7 +19,7 @@ modelPath string handle interface{} - fnInit func() interface{} + fnInit func(int, int, string, string) 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() interface{}), + fnInit: fnInit.(func(int, int, string, string) 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() + h := d.fnInit(2, 0, d.licSrvPath, d.modelPath) if h == nil { logo.Errorln("INIT VEHICLE SDK ERROR") return false -- Gitblit v1.8.0