diff --git a/controllers/ConfigController.php b/controllers/ConfigController.php
index a7633497..e309875b 100644
--- a/controllers/ConfigController.php
+++ b/controllers/ConfigController.php
@@ -100,6 +100,17 @@ class ConfigController extends Controller {
"ir_neighbor" => 1
]
],
+ "ultraface" => [
+ "enable" => 1,
+ "translate_x" => 0,
+ "translate_y" => 0,
+ "width" => 160,
+ "height" => 120,
+ "threshold" => 0.7,
+ "min_size" => 60,
+ "thread_use" => 2,
+ "max_ratio" => 1.5
+ ],
"haarcascade" => [
"enable" => 1,
"show_time_detect" => 0,
@@ -127,7 +138,11 @@ class ConfigController extends Controller {
"full_screen" => 1,
"width" => 1920,
"height" => 1080,
- "banner" => "Have a nice day!"
+ "banner" => "Have a nice day!",
+ "bb_color_rgb" => [
+ "detect" => [0, 250, 150],
+ "recog" => [255, 0, 0]
+ ]
],
"id_city" => 1581130,
"open_door" => [
diff --git a/views/config/cau-hinh-nhan-dien.tpl b/views/config/cau-hinh-nhan-dien.tpl
index 8d91eccb..39bd52da 100644
--- a/views/config/cau-hinh-nhan-dien.tpl
+++ b/views/config/cau-hinh-nhan-dien.tpl
@@ -450,6 +450,57 @@
+
+
+
+
+
@@ -577,6 +628,54 @@
:
{$config_json.screen.banner}
+
+
+
+
+
diff --git a/web/js/config.js b/web/js/config.js
index cf0e64bd..e9b3a25e 100644
--- a/web/js/config.js
+++ b/web/js/config.js
@@ -124,6 +124,17 @@ function saveStep2(e) {
"ir_neighbor": parseInt($("#text-c273").html())
}
},
+ "ultraface": {
+ "enable": parseInt($("#text-c_101").html()),
+ "translate_x": parseInt($("#text-c_102").html()),
+ "translate_y": parseInt($("#text-c_103").html()),
+ "width": parseInt($("#text-c_104").html()),
+ "height": parseInt($("#text-c_105").html()),
+ "threshold": parseFloat($("#text-c_106").html()),
+ "min_size": parseInt($("#text-c_107").html()),
+ "thread_use": parseInt($("#text-c_108").html()),
+ "max_ratio": parseFloat($("#text-c_109").html())
+ },
"haarcascade": {
"enable": parseInt($("#text-c31").html()),
"show_time_detect": parseInt($("#text-c32").html()),
@@ -151,7 +162,11 @@ function saveStep2(e) {
"full_screen": parseInt($("#text-c62").html()),
"width": parseInt($("#text-c63").html()),
"height": parseInt($("#text-c64").html()),
- "banner": $("#text-c65").html()
+ "banner": $("#text-c65").html(),
+ "bb_color_rgb": {
+ "detect": [parseInt($("#text-c6611").html()), parseInt($("#text-c6612").html()), parseInt($("#text-c6613").html())],
+ "recog": [parseInt($("#text-c6621").html()), parseInt($("#text-c6622").html()), parseInt($("#text-c6623").html())]
+ }
},
"id_city": parseInt($("#text-c7").html()),
"open_door": {