liuxiaolong
2019-06-27 bbb5de27a1ebc25b6b4f0dccc674729f27105680
service/FaceSdkService.go
@@ -27,10 +27,10 @@
func TestPushImgMsg() {
   InitService()
   proImg := readImgFile()
   if b, err := proto.Marshal(&proImg);err !=nil{
   i := readImgFile()
   fmt.Printf("width:%d,height:%d,data.length:%d,timestamp:%s,id:%d\n",i.Width,i.Height,len(i.Data),i.Timestamp,i.Id)
   if b, err := proto.Marshal(&i);err !=nil{
      fmt.Println("protoImage marshal err")
      return
   } else {
@@ -73,8 +73,7 @@
   }
   width := int32(picMat.Rows())
   height := int32(picMat.Cols())
   data := picMat.DataPtrUint8()
   fmt.Printf("data.width:%d,height:%d,data.length:%d",width,height,len(data))
   data := picMat.ToBytes()
   i = protomsg.Image{
      Width: width,
      Height: height,