From 5c3cfd092cf6fc9c1aec5027a5ed97eaa1a13c6f Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 04 七月 2019 19:36:09 +0800 Subject: [PATCH] 加上给目标画框,解析底库数据 --- main.go | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/main.go b/main.go index d6ee9a0..d9e1bf2 100644 --- a/main.go +++ b/main.go @@ -224,6 +224,18 @@ continue } } + if sdkinfo.Sdktype == "FaceCompare" { + faceParam := protomsg.ParamFaceFeature{} + for _,faceExtCom := range faceParam.ExtComp { + binfos := protomsg.Binfos{} + err := proto.Unmarshal(faceExtCom.Comp, &binfos) + if err != nil { + fmt.Println("瑙f瀽浜鸿劯姣斿鏁版嵁鏃跺嚭鐜伴敊璇�", err) + continue + } + log.Println("_________________________________________________________________瑙f瀽鍑虹殑浜鸿劯鐨勭浉浼肩殑搴曞簱鏁版嵁",binfos) + } + } } return m -- Gitblit v1.8.0