BiFace config
This commit is contained in:
403
web/css/site.css
403
web/css/site.css
@@ -270,4 +270,407 @@ legend {
|
||||
|
||||
body::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mt-element-step .row {
|
||||
margin: 0; }
|
||||
|
||||
.mt-element-step .step-default .mt-step-col {
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
text-align: center; }
|
||||
|
||||
.mt-element-step .step-default .mt-step-number {
|
||||
font-size: 26px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin: auto;
|
||||
padding: 3px 14px;
|
||||
margin-bottom: 20px; }
|
||||
|
||||
.mt-element-step .step-default .mt-step-title {
|
||||
font-size: 30px;
|
||||
font-weight: 100; }
|
||||
|
||||
.mt-element-step .step-default .active {
|
||||
background-color: #32c5d2 !important; }
|
||||
.mt-element-step .step-default .active .mt-step-number {
|
||||
color: #32c5d2 !important; }
|
||||
.mt-element-step .step-default .active .mt-step-title,
|
||||
.mt-element-step .step-default .active .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-default .done {
|
||||
background-color: #26C281 !important; }
|
||||
.mt-element-step .step-default .done .mt-step-number {
|
||||
color: #26C281 !important; }
|
||||
.mt-element-step .step-default .done .mt-step-title,
|
||||
.mt-element-step .step-default .done .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-default .error {
|
||||
background-color: #E7505A !important; }
|
||||
.mt-element-step .step-default .error .mt-step-number {
|
||||
color: #E7505A !important; }
|
||||
.mt-element-step .step-default .error .mt-step-title,
|
||||
.mt-element-step .step-default .error .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-thin .mt-step-col {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px; }
|
||||
|
||||
.mt-element-step .step-thin .mt-step-number {
|
||||
font-size: 26px;
|
||||
border-radius: 50% !important;
|
||||
float: left;
|
||||
margin: auto;
|
||||
padding: 3px 14px; }
|
||||
|
||||
.mt-element-step .step-thin .mt-step-title {
|
||||
font-size: 24px;
|
||||
font-weight: 100;
|
||||
padding-left: 60px;
|
||||
margin-top: -4px; }
|
||||
|
||||
.mt-element-step .step-thin .mt-step-content {
|
||||
padding-left: 60px;
|
||||
margin-top: -5px; }
|
||||
|
||||
.mt-element-step .step-thin .active {
|
||||
background-color: #32c5d2 !important; }
|
||||
.mt-element-step .step-thin .active .mt-step-number {
|
||||
color: #32c5d2 !important; }
|
||||
.mt-element-step .step-thin .active .mt-step-title,
|
||||
.mt-element-step .step-thin .active .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-thin .done {
|
||||
background-color: #26C281 !important; }
|
||||
.mt-element-step .step-thin .done .mt-step-number {
|
||||
color: #26C281 !important; }
|
||||
.mt-element-step .step-thin .done .mt-step-title,
|
||||
.mt-element-step .step-thin .done .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-thin .error {
|
||||
background-color: #E7505A !important; }
|
||||
.mt-element-step .step-thin .error .mt-step-number {
|
||||
color: #E7505A !important; }
|
||||
.mt-element-step .step-thin .error .mt-step-title,
|
||||
.mt-element-step .step-thin .error .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background .mt-step-col {
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
text-align: center;
|
||||
height: 160px; }
|
||||
|
||||
.mt-element-step .step-background .mt-step-number {
|
||||
font-size: 200px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
line-height: 0.79em;
|
||||
color: #dae1e4;
|
||||
z-index: 4; }
|
||||
|
||||
.mt-element-step .step-background .mt-step-title {
|
||||
font-size: 30px;
|
||||
font-weight: 100;
|
||||
text-align: right;
|
||||
padding-right: 25%;
|
||||
z-index: 5;
|
||||
position: relative; }
|
||||
|
||||
.mt-element-step .step-background .mt-step-content {
|
||||
text-align: right;
|
||||
padding-right: 25%;
|
||||
z-index: 5;
|
||||
position: relative; }
|
||||
|
||||
.mt-element-step .step-background .active {
|
||||
background-color: #32c5d2 !important; }
|
||||
.mt-element-step .step-background .active .mt-step-number {
|
||||
color: #2ab4c0 !important; }
|
||||
.mt-element-step .step-background .active .mt-step-title,
|
||||
.mt-element-step .step-background .active .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background .done {
|
||||
background-color: #26C281 !important; }
|
||||
.mt-element-step .step-background .done .mt-step-number {
|
||||
color: #22ad73 !important; }
|
||||
.mt-element-step .step-background .done .mt-step-title,
|
||||
.mt-element-step .step-background .done .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background .error {
|
||||
background-color: #E7505A !important; }
|
||||
.mt-element-step .step-background .error .mt-step-number {
|
||||
color: #e43a45 !important; }
|
||||
.mt-element-step .step-background .error .mt-step-title,
|
||||
.mt-element-step .step-background .error .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background-thin .mt-step-col {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
text-align: center; }
|
||||
|
||||
.mt-element-step .step-background-thin .mt-step-number {
|
||||
font-size: 120px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
line-height: 0.79em;
|
||||
color: #dae1e4;
|
||||
z-index: 4; }
|
||||
|
||||
.mt-element-step .step-background-thin .mt-step-title {
|
||||
font-size: 30px;
|
||||
font-weight: 100;
|
||||
text-align: right;
|
||||
padding-right: 25%;
|
||||
z-index: 5;
|
||||
position: relative; }
|
||||
|
||||
.mt-element-step .step-background-thin .mt-step-content {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
padding-right: 25%;
|
||||
z-index: 5; }
|
||||
|
||||
.mt-element-step .step-background-thin .active {
|
||||
background-color: #32c5d2 !important; }
|
||||
.mt-element-step .step-background-thin .active .mt-step-number {
|
||||
color: #2ab4c0 !important; }
|
||||
.mt-element-step .step-background-thin .active .mt-step-title,
|
||||
.mt-element-step .step-background-thin .active .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background-thin .done {
|
||||
background-color: #26C281 !important; }
|
||||
.mt-element-step .step-background-thin .done .mt-step-number {
|
||||
color: #22ad73 !important; }
|
||||
.mt-element-step .step-background-thin .done .mt-step-title,
|
||||
.mt-element-step .step-background-thin .done .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-background-thin .error {
|
||||
background-color: #E7505A !important; }
|
||||
.mt-element-step .step-background-thin .error .mt-step-number {
|
||||
color: #e43a45 !important; }
|
||||
.mt-element-step .step-background-thin .error .mt-step-title,
|
||||
.mt-element-step .step-background-thin .error .mt-step-content {
|
||||
color: #fff !important; }
|
||||
|
||||
.mt-element-step .step-no-background .mt-step-col {
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
text-align: center; }
|
||||
|
||||
.mt-element-step .step-no-background .mt-step-number {
|
||||
font-size: 26px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin: auto;
|
||||
padding: 3px 14px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid;
|
||||
border-color: #e5e5e5; }
|
||||
|
||||
.mt-element-step .step-no-background .mt-step-title {
|
||||
font-size: 30px;
|
||||
font-weight: 100; }
|
||||
|
||||
.mt-element-step .step-no-background .active .mt-step-number {
|
||||
color: #32c5d2 !important;
|
||||
border-color: #32c5d2 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background .active .mt-step-title,
|
||||
.mt-element-step .step-no-background .active .mt-step-content {
|
||||
color: #32c5d2 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background .done .mt-step-number {
|
||||
color: #26C281 !important;
|
||||
border-color: #26C281 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background .done .mt-step-title,
|
||||
.mt-element-step .step-no-background .done .mt-step-content {
|
||||
color: #26C281 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background .error .mt-step-number {
|
||||
color: #E7505A !important;
|
||||
border-color: #E7505A !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background .error .mt-step-title,
|
||||
.mt-element-step .step-no-background .error .mt-step-content {
|
||||
color: #E7505A !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .mt-step-col {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .mt-step-number {
|
||||
font-size: 26px;
|
||||
border-radius: 50% !important;
|
||||
float: left;
|
||||
margin: auto;
|
||||
padding: 3px 14px;
|
||||
border: 1px solid;
|
||||
border-color: #e5e5e5; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .mt-step-title {
|
||||
font-size: 24px;
|
||||
font-weight: 100;
|
||||
padding-left: 60px;
|
||||
margin-top: -4px; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .mt-step-content {
|
||||
padding-left: 60px;
|
||||
margin-top: -5px; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .active .mt-step-number {
|
||||
color: #32c5d2 !important;
|
||||
border-color: #32c5d2 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .active .mt-step-title,
|
||||
.mt-element-step .step-no-background-thin .active .mt-step-content {
|
||||
color: #32c5d2 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .done .mt-step-number {
|
||||
color: #26C281 !important;
|
||||
border-color: #26C281 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .done .mt-step-title,
|
||||
.mt-element-step .step-no-background-thin .done .mt-step-content {
|
||||
color: #26C281 !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .error .mt-step-number {
|
||||
color: #E7505A !important;
|
||||
border-color: #E7505A !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-no-background-thin .error .mt-step-title,
|
||||
.mt-element-step .step-no-background-thin .error .mt-step-content {
|
||||
color: #E7505A !important;
|
||||
font-weight: 700; }
|
||||
|
||||
.mt-element-step .step-line .mt-step-col {
|
||||
padding: 30px 0;
|
||||
text-align: center; }
|
||||
|
||||
.mt-element-step .step-line .mt-step-number {
|
||||
font-size: 26px;
|
||||
border-radius: 50% !important;
|
||||
display: inline-block;
|
||||
margin: auto;
|
||||
padding: 9px;
|
||||
margin-bottom: 5px;
|
||||
border: 3px solid;
|
||||
border-color: #e5e5e5;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
text-align: center; }
|
||||
.mt-element-step .step-line .mt-step-number > i {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-120%); }
|
||||
|
||||
.mt-element-step .step-line .mt-step-title {
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
position: relative; }
|
||||
.mt-element-step .step-line .mt-step-title:after {
|
||||
content: '';
|
||||
height: 3px;
|
||||
width: 50%;
|
||||
position: absolute;
|
||||
background-color: #e5e5e5;
|
||||
top: -32px;
|
||||
left: 50%;
|
||||
z-index: 4;
|
||||
transform: translateY(-100%); }
|
||||
.mt-element-step .step-line .mt-step-title:before {
|
||||
content: '';
|
||||
height: 3px;
|
||||
width: 50%;
|
||||
position: absolute;
|
||||
background-color: #e5e5e5;
|
||||
top: -32px;
|
||||
right: 50%;
|
||||
z-index: 4;
|
||||
transform: translateY(-100%); }
|
||||
|
||||
.mt-element-step .step-line .first .mt-step-title:before {
|
||||
content: none; }
|
||||
|
||||
.mt-element-step .step-line .last .mt-step-title:after {
|
||||
content: none; }
|
||||
|
||||
.mt-element-step .step-line .active .mt-step-number {
|
||||
color: #32c5d2 !important;
|
||||
border-color: #32c5d2 !important; }
|
||||
|
||||
.mt-element-step .step-line .active .mt-step-title,
|
||||
.mt-element-step .step-line .active .mt-step-content {
|
||||
color: #32c5d2 !important; }
|
||||
|
||||
.mt-element-step .step-line .active .mt-step-title:after, .mt-element-step .step-line .active .mt-step-title:before {
|
||||
background-color: #32c5d2; }
|
||||
|
||||
.mt-element-step .step-line .done .mt-step-number {
|
||||
color: #26C281 !important;
|
||||
border-color: #26C281 !important; }
|
||||
|
||||
.mt-element-step .step-line .done .mt-step-title,
|
||||
.mt-element-step .step-line .done .mt-step-content {
|
||||
color: #26C281 !important; }
|
||||
|
||||
.mt-element-step .step-line .done .mt-step-title:after, .mt-element-step .step-line .done .mt-step-title:before {
|
||||
background-color: #26C281; }
|
||||
|
||||
.mt-element-step .step-line .error .mt-step-number {
|
||||
color: #E7505A !important;
|
||||
border-color: #E7505A !important; }
|
||||
|
||||
.mt-element-step .step-line .error .mt-step-title,
|
||||
.mt-element-step .step-line .error .mt-step-content {
|
||||
color: #E7505A !important; }
|
||||
|
||||
.mt-element-step .step-line .error .mt-step-title:after, .mt-element-step .step-line .error .mt-step-title:before {
|
||||
background-color: #E7505A; }
|
||||
|
||||
@media (max-width: 991px) {
|
||||
/* 991px */
|
||||
.mt-element-step .step-line .mt-step-title:after {
|
||||
content: none; }
|
||||
.mt-element-step .step-line .mt-step-title:before {
|
||||
content: none; } }
|
||||
|
||||
.font-grey {
|
||||
color: #E5E5E5!important;
|
||||
}
|
||||
.bg-grey {
|
||||
background: #E5E5E5!important;
|
||||
}
|
||||
.bg-white {
|
||||
background: #fff!important;
|
||||
}
|
||||
.font-grey-cascade {
|
||||
color: #95A5A6!important;
|
||||
}
|
||||
151
web/js/config.js
Normal file
151
web/js/config.js
Normal file
@@ -0,0 +1,151 @@
|
||||
$(function () {
|
||||
|
||||
});
|
||||
function saveStep1(e) {
|
||||
common.modalBlock(true);
|
||||
$.ajax({
|
||||
url: $(e).attr("data-href"),
|
||||
type: 'POST',
|
||||
data: {
|
||||
servermqtt: $("input[name='servermqtt']").val(),
|
||||
url: $("input[name='url']").val()
|
||||
},
|
||||
success: function (data) {
|
||||
setTimeout(function () {
|
||||
window.location = data;
|
||||
}, 2000);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
common.modalBlock(false);
|
||||
common.ajaxError();
|
||||
}
|
||||
});
|
||||
}
|
||||
function saveStep2(e) {
|
||||
var config_json = {
|
||||
"camera": {
|
||||
"auto_check": parseInt($("#text-c11").html()),
|
||||
"num_cam": parseInt($("#text-c12").html()),
|
||||
"rgb": {
|
||||
"url": $("#text-c131").html(),
|
||||
"type": $("#text-c132").html(),
|
||||
"rotate": parseInt($("#text-c133").html()),
|
||||
"config": {
|
||||
"enable": parseInt($("#text-c1341").html()),
|
||||
"brightness": parseInt($("#text-c1342").html()),
|
||||
"gain": parseInt($("#text-c1343").html()),
|
||||
"saturation": parseInt($("#text-c1344").html()),
|
||||
"sharpness": parseInt($("#text-c1345").html())
|
||||
}
|
||||
},
|
||||
"ir": {
|
||||
"url": $("#text-c141").html(),
|
||||
"type": $("#text-c142").html(),
|
||||
"rotate": parseInt($("#text-c143").html()),
|
||||
"translate_x": parseInt($("#text-c144").html()),
|
||||
"translate_y": parseInt($("#text-c145").html()),
|
||||
"ir_scale": parseFloat($("#text-c146").html()),
|
||||
"config": {
|
||||
"enable": parseInt($("#text-c1471").html())
|
||||
}
|
||||
},
|
||||
"max_queue_size": parseInt($("#text-c15").html()),
|
||||
"count_frame_to_skip": parseInt($("#text-c16").html()),
|
||||
"fps": parseInt($("#text-c17").html()),
|
||||
"merge_queue_pause": parseInt($("#text-c18").html()),
|
||||
"raw_resolution": {
|
||||
"width": parseInt($("#text-c191").html()),
|
||||
"height": parseInt($("#text-c192").html())
|
||||
},
|
||||
"cam_resize": {
|
||||
"width": parseInt($("#text-c1101").html()),
|
||||
"height": parseInt($("#text-c1102").html())
|
||||
},
|
||||
"crop_frame": {
|
||||
"x": parseInt($("#text-c1111").html()),
|
||||
"y": parseInt($("#text-c1112").html()),
|
||||
"width": parseInt($("#text-c1113").html()),
|
||||
"height": parseInt($("#text-c1114").html())
|
||||
}
|
||||
},
|
||||
"face_verify": {
|
||||
"show_fake_label": parseInt($("#text-c21").html()),
|
||||
"debug": parseInt($("#text-c22").html()),
|
||||
"max_fake_time": parseInt($("#text-c23").html()),
|
||||
"min_real_time": parseInt($("#text-c24").html()),
|
||||
"saturation": {
|
||||
"enable": parseInt($("#text-c251").html()),
|
||||
"min_std_thresh": parseInt($("#text-c252").html()),
|
||||
"min_mean_thresh": parseInt($("#text-c253").html())
|
||||
},
|
||||
"mtcnn": {
|
||||
"enable": parseInt($("#text-c261").html()),
|
||||
"size": parseInt($("#text-c262").html()),
|
||||
"num_thread": parseInt($("#text-c263").html())
|
||||
},
|
||||
"ir_face_verify": {
|
||||
"enable": parseInt($("#text-c271").html()),
|
||||
"ir_scale": parseFloat($("#text-c272").html()),
|
||||
"ir_neighbor": parseInt($("#text-c273").html())
|
||||
}
|
||||
},
|
||||
"haarcascade": {
|
||||
"enable": parseInt($("#text-c31").html()),
|
||||
"show_time_detect": parseInt($("#text-c32").html()),
|
||||
"min_size": parseInt($("#text-c33").html()),
|
||||
"max_size": parseInt($("#text-c34").html()),
|
||||
"scale": parseFloat($("#text-c35").html()),
|
||||
"neighbor": parseInt($("#text-c36").html())
|
||||
},
|
||||
"engine": {
|
||||
"max_fps": parseInt($("#text-c41").html()),
|
||||
"cam_id": parseInt($("#text-c42").html()),
|
||||
"server_authen": $("#text-c43").html()
|
||||
},
|
||||
"recognition": {
|
||||
"enable": parseInt($("#text-c51").html()),
|
||||
"accuracy": parseFloat($("#text-c52").html()),
|
||||
"server_recog": $("#text-c53").html(),
|
||||
"request_timeout": parseInt($("#text-c54").html()),
|
||||
"num_face_recog": parseInt($("#text-c55").html()),
|
||||
"first_time_recog": parseInt($("#text-c56").html()),
|
||||
"next_time_recog": parseInt($("#text-c57").html())
|
||||
},
|
||||
"screen": {
|
||||
"show_video": parseInt($("#text-c61").html()),
|
||||
"full_screen": parseInt($("#text-c62").html()),
|
||||
"width": parseInt($("#text-c63").html()),
|
||||
"height": parseInt($("#text-c64").html())
|
||||
},
|
||||
"id_city": parseInt($("#text-c7").html()),
|
||||
"open_door": {
|
||||
"enable": parseInt($("#text-c81").html()),
|
||||
"port_name": $("#text-c82").html()
|
||||
},
|
||||
"log": {
|
||||
"path": $("#text-c91").html(),
|
||||
"limit": parseInt($("#text-c92").html()),
|
||||
"clear_line": parseInt($("#text-c93").html())
|
||||
}
|
||||
};
|
||||
common.modalBlock(true);
|
||||
$.ajax({
|
||||
url: $(e).attr("data-href"),
|
||||
type: 'POST',
|
||||
data: {
|
||||
config: JSON.stringify(config_json)
|
||||
},
|
||||
success: function (data) {
|
||||
if (data) {
|
||||
notification.success("Đã lưu cấu hình!", 2000);
|
||||
} else {
|
||||
notification.success("Lưu cấu hình thất bại!", 2000);
|
||||
}
|
||||
common.modalBlock(false);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
common.modalBlock(false);
|
||||
common.ajaxError();
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user