From 8ceae6fc8ef80a43e1c5e4c82487963a3450cb7b Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 27 六月 2019 17:24:28 +0800
Subject: [PATCH] test

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

diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go
index 3036afc..6e608ac 100644
--- a/service/FaceSdkService.go
+++ b/service/FaceSdkService.go
@@ -65,14 +65,17 @@
 
 	picMat := gocv.IMRead(filePath, gocv.IMReadColor)
 
+	window := gocv.NewWindow("Hello")
+	window.IMShow(picMat)
+
 	defer picMat.Close()
 
 	if picMat.Empty() {
 		fmt.Println("file not exist")
 		return i
 	}
-	width := int32(picMat.Rows())
-	height := int32(picMat.Cols())
+	height := int32(picMat.Rows())
+	width := int32(picMat.Cols())
 	data := picMat.ToBytes()
 	i = protomsg.Image{
 		Width: width,

--
Gitblit v1.8.0