Support UTF8 to UTF16 LE.

Support Unicode helper
Fix ANSFR to show 2 same faces in 1 image
This commit is contained in:
2026-03-31 21:52:47 +11:00
parent 70be68d0fc
commit ccfc5964d4
21 changed files with 379 additions and 104 deletions

View File

@@ -259,7 +259,7 @@ namespace ANSCENTER {
});
}
return root.dump(-1, ' ', true);
return root.dump();
}
catch (const std::exception& e) {
// Add your error logging here if needed
@@ -893,7 +893,7 @@ namespace ANSCENTER {
for (const auto& part : res.parts) {
alprInfo[part.first] = part.second;
}
std::string extraInfoStr = alprInfo.dump(-1, ' ', true);
std::string extraInfoStr = alprInfo.dump();
// Use the same field layout as OCRDetectionToJsonString
jsonResults.push_back({
@@ -912,7 +912,7 @@ namespace ANSCENTER {
{"kps", ""}
});
}
return root.dump(-1, ' ', true);
return root.dump();
} catch (const std::exception&) {
return R"({"results":[],"error":"ALPR serialization failed"})";
}