From 9f08028f23d9e5cbfa159bec1e07d63b141a6809 Mon Sep 17 00:00:00 2001 From: zhangjixing <775834166@qq.com> Date: 星期五, 18 一月 2019 10:17:00 +0800 Subject: [PATCH] --- QiaoJiaSystem/FaceDetectServer/rpc/FaceServer.h | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/QiaoJiaSystem/FaceDetectServer/rpc/FaceServer.h b/QiaoJiaSystem/FaceDetectServer/rpc/FaceServer.h index b0752ee..5b8307c 100644 --- a/QiaoJiaSystem/FaceDetectServer/rpc/FaceServer.h +++ b/QiaoJiaSystem/FaceDetectServer/rpc/FaceServer.h @@ -129,10 +129,11 @@ ::FaceDetect::FaceAngle fAngle; int nQuality; ::FaceDetect::Data pFacialData; + long long int pfaceId; - std::tuple<const ::FaceDetect::RECT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::FaceAngle&, const int&, const ::FaceDetect::Data&> ice_tuple() const + std::tuple<const ::FaceDetect::RECT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::POINT&, const ::FaceDetect::FaceAngle&, const int&, const ::FaceDetect::Data&, const long long int&> ice_tuple() const { - return std::tie(rcFace, ptLeftEye, ptRightEye, ptMouth, ptNose, fAngle, nQuality, pFacialData); + return std::tie(rcFace, ptLeftEye, ptRightEye, ptMouth, ptNose, fAngle, nQuality, pFacialData, pfaceId); } }; @@ -371,7 +372,7 @@ struct StreamableTraits<::FaceDetect::FacePos> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; - static const int minWireSize = 69; + static const int minWireSize = 77; static const bool fixedLength = false; }; @@ -380,7 +381,7 @@ { static void read(S* istr, ::FaceDetect::FacePos& v) { - istr->readAll(v.rcFace, v.ptLeftEye, v.ptRightEye, v.ptMouth, v.ptNose, v.fAngle, v.nQuality, v.pFacialData); + istr->readAll(v.rcFace, v.ptLeftEye, v.ptRightEye, v.ptMouth, v.ptNose, v.fAngle, v.nQuality, v.pFacialData, v.pfaceId); } }; @@ -719,6 +720,7 @@ ::FaceDetect::FaceAngle fAngle; ::Ice::Int nQuality; ::FaceDetect::Data pFacialData; + ::Ice::Long pfaceId; }; typedef ::std::vector< ::FaceDetect::FacePos> Faces; @@ -1098,7 +1100,7 @@ struct StreamableTraits< ::FaceDetect::FacePos> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; - static const int minWireSize = 69; + static const int minWireSize = 77; static const bool fixedLength = false; }; @@ -1115,6 +1117,7 @@ ostr->write(v.fAngle); ostr->write(v.nQuality); ostr->write(v.pFacialData); + ostr->write(v.pfaceId); } }; @@ -1131,6 +1134,7 @@ istr->read(v.fAngle); istr->read(v.nQuality); istr->read(v.pFacialData); + istr->read(v.pfaceId); } }; -- Gitblit v1.8.0