Support UTF8 to UTF16 LE.
Support Unicode helper Fix ANSFR to show 2 same faces in 1 image
This commit is contained in:
@@ -2161,6 +2161,9 @@ namespace ANSCENTER {
|
||||
START_TIMER(postprocess);
|
||||
resultObjects=UpdateFaceAttributes(recognizedFaces, camera_id);
|
||||
END_TIMER(postprocess, "Update Face Attributes Time");
|
||||
|
||||
// Deduplicate: if two faces matched the same userId, keep only the highest confidence
|
||||
ensureUniqueUserIdWithHighestConfidence(resultObjects);
|
||||
}
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
@@ -2405,7 +2408,7 @@ namespace ANSCENTER {
|
||||
END_TIMER(json_build, "JSON Build Time");
|
||||
|
||||
START_TIMER(json_serialize);
|
||||
std::string result = root.dump(-1, ' ', true);
|
||||
std::string result = root.dump();
|
||||
END_TIMER(json_serialize, "JSON Serialize Time");
|
||||
|
||||
END_TIMER(json_total, "JSON Conversion Total Time");
|
||||
@@ -2442,7 +2445,7 @@ namespace ANSCENTER {
|
||||
|
||||
root["results"] = detectedObjects;
|
||||
|
||||
return root.dump(-1, ' ', true);
|
||||
return root.dump();
|
||||
}
|
||||
|
||||
// Validation helper methods
|
||||
|
||||
Reference in New Issue
Block a user