From 39beb632251bb93a7b44338f400480c70d02abf0 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 13 十二月 2019 11:20:56 +0800 Subject: [PATCH] udpate --- work/sdk/plateIDdetect.go | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/work/sdk/plateIDdetect.go b/work/sdk/plateIDdetect.go index 08234d0..0fce158 100644 --- a/work/sdk/plateIDdetect.go +++ b/work/sdk/plateIDdetect.go @@ -1,13 +1,12 @@ package sdk import ( - "analysis/goconv" "analysis/logo" "analysis/work" "context" "time" - "basic.com/valib/gosdk.git" + "analysis/gosdk" ) // PlateIDDetector plate id @@ -98,7 +97,6 @@ for { select { case <-ctx.Done(): - goconv.Free() return default: rMsg := <-in @@ -114,12 +112,7 @@ } imgW, imgH := int(i.Width), int(i.Height) - bgrData := goconv.YUV2BGR(i.Data, imgW, imgH) - if bgrData == nil { - ejectResult(nil, rMsg, out) - continue - } - img := gosdk.SDKImage{Data: bgrData, Width: imgW, Height: imgH} + img := gosdk.SDKImage{Data: i.Data, Width: imgW, Height: imgH} rcDetect := gosdk.CRECT{ Left: 0, -- Gitblit v1.8.0