From 5f6bb1dd6b9bfe2a76552b6039507c86a464e6b5 Mon Sep 17 00:00:00 2001 From: Owen Carter Date: Tue, 11 May 2021 11:38:59 +0200 Subject: [PATCH] Face detection resolution and Quality control quality improvements (#109) * Update UI to allow face detection enabling for CIF mode Unexpected consequence of the changes addressed in #98 * Changed the UI labelling for the 'quality' slider to just say 'High (slow)' and 'Low (fast)', much more comprehensible, thanks @TungstenE2 I also allow the slider to go to '6' instead of '10' for the OV2640 --- index_other.h | 2 +- index_ov2640.h | 12 ++++++------ index_ov3660.h | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/index_other.h b/index_other.h index c1c58a0..89cb1cc 100644 --- a/index_other.h +++ b/index_other.h @@ -270,7 +270,7 @@ const uint8_t index_simple_html[] = R"=====( framesize.onchange = () => { updateConfig(framesize) - if (framesize.value > 5) { + if (framesize.value > 6) { updateValue(detect, false) updateValue(recognize, false) } diff --git a/index_ov2640.h b/index_ov2640.h index e709b71..1c457bc 100644 --- a/index_ov2640.h +++ b/index_ov2640.h @@ -68,11 +68,11 @@ const uint8_t index_ov2640_html[] = R"=====(
-
63
+
Low
(fast)
- -
10
+ +
High
(slow)
@@ -572,14 +572,14 @@ const uint8_t index_ov2640_html[] = R"=====( framesize.onchange = () => { updateConfig(framesize) - if (framesize.value > 5) { + if (framesize.value > 6) { updateValue(detect, false) updateValue(recognize, false) } } detect.onchange = () => { - if (framesize.value > 5) { + if (framesize.value > 6) { alert("Please select CIF or lower resolution before enabling this feature!"); updateValue(detect, false) return; @@ -592,7 +592,7 @@ const uint8_t index_ov2640_html[] = R"=====( } recognize.onchange = () => { - if (framesize.value > 5) { + if (framesize.value > 6) { alert("Please select CIF or lower resolution before enabling this feature!"); updateValue(recognize, false) return; diff --git a/index_ov3660.h b/index_ov3660.h index 59d1ba8..8b4fa05 100644 --- a/index_ov3660.h +++ b/index_ov3660.h @@ -70,11 +70,11 @@ const uint8_t index_ov3660_html[] = R"=====(
-
63
+
Low
(fast)
-
4
+
High
(slow)
@@ -580,14 +580,14 @@ const uint8_t index_ov3660_html[] = R"=====( framesize.onchange = () => { updateConfig(framesize) - if (framesize.value > 5) { + if (framesize.value > 6) { updateValue(detect, false) updateValue(recognize, false) } } detect.onchange = () => { - if (framesize.value > 5) { + if (framesize.value > 6) { alert("Please select CIF or lower resolution before enabling this feature!"); updateValue(detect, false) return; @@ -600,7 +600,7 @@ const uint8_t index_ov3660_html[] = R"=====( } recognize.onchange = () => { - if (framesize.value > 5) { + if (framesize.value > 6) { alert("Please select CIF or lower resolution before enabling this feature!"); updateValue(recognize, false) return;