From 627bb9c4c1d4eb256aa6fe5bac5280f907d25ff1 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 10 七月 2017 15:32:02 +0800 Subject: [PATCH] update native --- FaceServer/face_daemon_proto.h | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/FaceServer/face_daemon_proto.h b/FaceServer/face_daemon_proto.h index 1ac3a8a..cf642a9 100644 --- a/FaceServer/face_daemon_proto.h +++ b/FaceServer/face_daemon_proto.h @@ -20,6 +20,7 @@ FDC_SENSETIMEFACEDETECT_RESULT_JSON, FDC_SENSETIMEFACEDETECT_SAVE, FDC_SENSETIMEFACEDETECT_COMPARE, + FDC_SENSETIMEFACEDETECT_SEARCH, FDC__LAST, }; }; @@ -41,8 +42,9 @@ 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(); @@ -53,9 +55,13 @@ { int32_t db_id; int32_t st_id; // sensetime id - int16_t confidence; // 1000 times of float confidence + int16_t confidence; // 1000 times of float confidence, less than zero means error - FDP_FaceDetectResult(int32_t _db_id, int32_t _st_id, int _confidence) : db_id(_db_id), st_id(_st_id), confidence(_confidence) + 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(); -- Gitblit v1.8.0