From cefb30a1e8737b52e46da86f2decafb7d7e150f0 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 28 六月 2019 20:33:21 +0800
Subject: [PATCH] test
---
service/FaceSdkService.go | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go
index b099565..64e5f6c 100644
--- a/service/FaceSdkService.go
+++ b/service/FaceSdkService.go
@@ -80,7 +80,7 @@
}
height := int32(picMat.Rows())
width := int32(picMat.Cols())
- data := picMat.ToBytes()
+ //data := picMat.ToBytes()
timeUnix := time.Now().Unix()
formatTimeStr := time.Unix(timeUnix, 0).Format("2006-01-02 15:04:05")
@@ -88,7 +88,7 @@
Width: width,
Height: height,
Timestamp: formatTimeStr,
- Data: data,
+ Data: imgB,
Id: timeUnix,
Cid:s.Id,
},nil
@@ -122,7 +122,8 @@
go func() {
for {
select {
- case <-time.Tick(time.Second*10):
+ case <-time.Tick(time.Second*5):
+ fmt.Println("鍊掕鏃剁粨鏉�")
ch <- nil
wg.Done()
return
@@ -131,11 +132,15 @@
fmt.Println("faceFea got!!!")
ch <- feas
return
+ } else {
+ fmt.Println("灏氭湭鎷垮埌fea")
}
}
}
}()
+ fmt.Println("wa.Wait")
wg.Wait()
+ fmt.Println("<-ch")
msg := <- ch
if msg != nil {
return msg,nil
--
Gitblit v1.8.0