From 41bc5a329c73e3b43695f73f11c47c97c44cc1b6 Mon Sep 17 00:00:00 2001
From: chenke <chenke@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 20 七月 2017 09:45:41 +0800
Subject: [PATCH] 

---
 FaceServer/face_daemon_proto.h |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/FaceServer/face_daemon_proto.h b/FaceServer/face_daemon_proto.h
index 63d5741..cf642a9 100644
--- a/FaceServer/face_daemon_proto.h
+++ b/FaceServer/face_daemon_proto.h
@@ -19,6 +19,8 @@
 		FDC_SENSETIMEFACEDETECT_PB,
 		FDC_SENSETIMEFACEDETECT_RESULT_JSON,
 		FDC_SENSETIMEFACEDETECT_SAVE,
+		FDC_SENSETIMEFACEDETECT_COMPARE,
+		FDC_SENSETIMEFACEDETECT_SEARCH,
 		FDC__LAST,
 	};
 };
@@ -29,28 +31,41 @@
 	int16_t mb_type; // MB_Frame::MBFType
 	int16_t width;
 	int16_t height;
+	int16_t size;
 	uint8_t buff[0];
+	
+	void hton();
+	void ntoh();
 };
+//sizeof(FDP_Image)=10
 
 struct FDP_FaceDetectPB
 {
 	int32_t db_id;
+	int16_t camera_id;
 	
-	FDP_FaceDetectPB(int32_t _db_id) : db_id(_db_id)
+	FDP_FaceDetectPB(int32_t _db_id, int16_t _camera_id) : db_id(_db_id), camera_id(_camera_id)
 	{}
 	
 	void hton();
+	void ntoh();
 };
 
 struct FDP_FaceDetectResult
 {
 	int32_t db_id;
 	int32_t st_id; // sensetime id
+	int16_t confidence; // 1000 times of float confidence, less than zero means error
 	
-	FDP_FaceDetectResult(int32_t _db_id, int32_t _st_id) : db_id(_db_id), st_id(_st_id)
+	int16_t camera_id;
+	int32_t st_track_id;
+	
+	FDP_FaceDetectResult(int32_t _db_id, int32_t _st_id, int _confidence) : 
+		db_id(_db_id), st_id(_st_id), confidence(_confidence), camera_id(0), st_track_id(0)
 	{}
 	
 	void hton();
+	void ntoh();
 };
 
 #pragma pack()

--
Gitblit v1.8.0