fix bug confidence

This commit is contained in:
2021-04-26 10:24:53 +07:00
parent b006af4e1f
commit 924d23dad0
5 changed files with 66 additions and 34 deletions

View File

@@ -23,6 +23,9 @@ function _form(e) {
$("#form").removeClass("hidden");
$("input[name='CaptureLogsID']").val($(e).attr("data-id"));
$("#FaceImage").attr("src", $(e).attr("data-img"));
var confidence = JSON.parse($(e).attr("data-confidence"));
$("#closest-img").attr("src", confidence.img);
$("#closest-name").html(confidence.name + " [" + confidence.score + "]");
}
function _close() {