From 4cb4bd77e9ae50929f628c36f62a1923c0787f67 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 28 六月 2017 14:10:07 +0800 Subject: [PATCH] add compare bin proto --- FaceServer/proto_hton_ntoh.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/FaceServer/proto_hton_ntoh.cpp b/FaceServer/proto_hton_ntoh.cpp index 6abf5c2..ccc2da9 100644 --- a/FaceServer/proto_hton_ntoh.cpp +++ b/FaceServer/proto_hton_ntoh.cpp @@ -66,10 +66,12 @@ { db_id = htonl(db_id); st_id = htonl(st_id); + confidence = htons(confidence); } void FDP_FaceDetectResult::ntoh() { db_id = ntohl(db_id); st_id = ntohl(st_id); + confidence = ntohs(confidence); } -- Gitblit v1.8.0