From 2f2078090cfd091bd718ecd63e078cb01b968c93 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 06 八月 2019 15:15:09 +0800
Subject: [PATCH] add ImgCompress

---
 service/FaceSdkService.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go
index 3039f77..d140ff3 100644
--- a/service/FaceSdkService.go
+++ b/service/FaceSdkService.go
@@ -96,6 +96,7 @@
 		logger.Debug("gocv.IMDecode err:",err)
 		return nil,err
 	}
+	logger.Debug("picMat.Data.len:", len(picMat.ToBytes()))
 	newMat := gocv.NewMat()
 	if picMat.Rows() > 1000 || picMat.Cols() > 1000 {
 		gocv.Resize(picMat,&newMat, image.Pt(0,0), 0.5,  0.5, gocv.InterpolationDefault)
@@ -270,7 +271,6 @@
 		}
 		rMsg := protomsg.SdkMessage{}
 		if err := proto.Unmarshal(resultBytes, &rMsg); err == nil {
-			logger.Debug("received MSG:", rMsg.Cid)
 			i := protomsg.Image{}
 			bdata, err := util.UnCompress(rMsg.Data)
 			if err !=nil {

--
Gitblit v1.8.0