From 7c714aab1a4d2c9aee5005a516b5bd87a26c2cd5 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 19 二月 2019 16:59:32 +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