From 2ad487855e84526ece16b792a3e08372dc631198 Mon Sep 17 00:00:00 2001 From: GOB Date: Fri, 26 May 2023 01:38:07 +0900 Subject: [PATCH 1/5] Add html source for face detection --- html/index_gc0308_face.html | 915 ++++++++++++++++++++++++++++++++++++ 1 file changed, 915 insertions(+) create mode 100644 html/index_gc0308_face.html diff --git a/html/index_gc0308_face.html b/html/index_gc0308_face.html new file mode 100644 index 0000000..1a002ad --- /dev/null +++ b/html/index_gc0308_face.html @@ -0,0 +1,915 @@ + + + + + + M5StackCoreS3 GC0308 + + + +
+ +
+ +
+ +
+
+
+ + + From 6f607dd663ba6edaeb2ecf7ae914a8991548fbf3 Mon Sep 17 00:00:00 2001 From: GOB Date: Fri, 26 May 2023 22:52:13 +0900 Subject: [PATCH 2/5] Update README --- README.en.md | 22 +- README.md | 16 +- html/index_gc0308.html | 44 +- src/app_httpd.cpp | 170 ++++++- src/index_gc0308_face_html.cpp | 888 +++++++++++++++++---------------- src/index_gc0308_html.cpp | 865 ++++++++++++++++---------------- src/main.cpp | 9 +- 7 files changed, 1125 insertions(+), 889 deletions(-) diff --git a/README.en.md b/README.en.md index 590f492..f9618e0 100644 --- a/README.en.md +++ b/README.en.md @@ -2,25 +2,26 @@ [日本語](README.md) - + + ## Overview Porting of [espressif/arduino-esp32](https://github.com/espressif/arduino-esp32) example [CameraWebServer](https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/Camera/CameraWebServer) to M5Stack CoreS3 (GC0308). -Access CoreS3 from a browser via WiFi to control the camera and receive streaming. - +Access CoreS3 from a browser via WiFi to control the camera and receive streaming. +It can also perform QR recognition. -## Required libraries +## Required * [M5Unified](https://github.com/m5stack/M5Unified) -* [es32-camera](https://github.com/espressif/esp32-camera/tree/master) -However, If you set platform = espressif32 and framework = arduino in platformio, esp32-camera is included in the package, so you do not need to specify es32-camera in lib_deps. +* [esp32-camera](https://github.com/espressif/esp32-camera/tree/master) +However, If you set platform = espressif32 and framework = arduino in platformio, esp32-camera is included in the package, so you do not need to specify esp32-camera in lib_deps. * [gob_GC0308](https://github.com/GOB52/gob_GC0308) * WiFi connection available ## Build type |Env|Description| |---|---| -|release|Basic settings| -|release_face|Support dace detection and recognition| +|release|Basic settings and QR recognition| +|release_face|Support face detection and recognition| ## How to use Once executed, the IP address will be displayed on the screen and on the serial monitor. @@ -49,6 +50,8 @@ Please save the credential in some way or rewrite the source. The currently set camera resolution is displayed. The resolution cannot be changed. * Contrast Change the contrast. +* Saturation +Change the saturation. * Special Effect Change the special effect. @@ -95,6 +98,8 @@ Start/Stop receiving stream. * Enroll Face Enroll the face on the camera. Once enrolled, the face will no longer be treated as an intruder (red frame) if Face Recogintion is ON. +* Start/Stop Scan QR +Start/Stop recognize QR code. * Save Download incoming images. @@ -112,3 +117,4 @@ Refer to data sheets and other sources for register and function information. * M5Unified base to work. * Modified html for GC0308. * Functions not present in GC0308 were omitted. +* Add QR code recognition. diff --git a/README.md b/README.md index df110e5..50a0053 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,18 @@ [English](README.en.md) - + + ## 概要 [espressif/arduino-esp32](https://github.com/espressif/arduino-esp32) の [CameraWebServer](https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/Camera/CameraWebServer) を M5Stack CoreS3 向けに移植した物です。 -WiFi 経由でブラウザから CoreS3 へアクセスし、カメラの制御とストリーミング受信を行います。 +WiFi 経由でブラウザから CoreS3 へアクセスし、カメラの制御とストリーミング受信を行います。 +QR 識別も行えます。 ## 必要な物 * [M5Unified](https://github.com/m5stack/M5Unified) -* [es32-camera](https://github.com/espressif/esp32-camera/tree/master) +* [esp32-camera](https://github.com/espressif/esp32-camera/tree/master) platformio で platform = espressif32, framework = arduino なら同梱なので必要無し * [gob_GC0308](https://github.com/GOB52/gob_GC0308) * WiFi 接続可能な環境 @@ -19,10 +21,9 @@ platformio で platform = espressif32, framework = arduino なら同梱なので ## ビルド種別 |Env|説明| |---|---| -|release|基本設定| +|release|基本設定と QR 識別| |release_face|顔検出、認識あり| - ## 使い方 実行すると、画面とシリアルモニタに接続先 IP アドレスが表示されます。 下記は例なので実際は環境によって IP は異なります @@ -50,6 +51,8 @@ platformio で platform = espressif32, framework = arduino なら同梱なので 現在設定されているカメラの解像度を表示しています。解像度変更はできません。 * Contrast コントラストを変更します。 +* Saturation +彩度を変更します。 * Special Effect エフェクトをかけます。 @@ -97,6 +100,8 @@ platformio で platform = espressif32, framework = arduino なら同梱なので * Enroll Face カメラに写っている顔を登録します。 登録すると Face Recogintion ON の時に侵入者(赤枠)扱いになりません。 +* Start/Stop Scan QR +QR 識別の開始/終了。 * Save 受信画像をダウンロードします。 @@ -114,4 +119,5 @@ platformio で platform = espressif32, framework = arduino なら同梱なので * M5Unified ベースで動作するようにした。 * GC0308 用に html を修正した。 * GC0308 に無い機能を割愛した。 +* QR 識別機能を追加した diff --git a/html/index_gc0308.html b/html/index_gc0308.html index 83f4fac..5a3c65f 100644 --- a/html/index_gc0308.html +++ b/html/index_gc0308.html @@ -405,13 +405,23 @@ -
+ +
+ +
-2
2
+
+ +
0
+ +
255
+
+