From f0a55fbe2c2757bc64883ae65a717ad1a1ae9072 Mon Sep 17 00:00:00 2001
From: zhangmeng <zhangmeng@aiotlink.com>
Date: 星期一, 16 十二月 2019 10:41:00 +0800
Subject: [PATCH] update cuda10.0/cuda10.2(face)

---
 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