Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed May 21, 2023
2 parents 7f583d4 + 56925fc commit a23f3dd
Show file tree
Hide file tree
Showing 9 changed files with 1,169 additions and 86 deletions.
Binary file removed M5StackCoreS3_CameraWebServer.jpg
Binary file not shown.
21 changes: 19 additions & 2 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[日本語](README.md)

<img src="./M5StackCoreS3_CameraWebServer.jpg" width="480">
<img src="https://user-images.githubusercontent.com/26270227/239725404-c5dd33c4-c511-4d05-a192-3d184ef4de8b.png" width="480">

## 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).
Expand All @@ -16,6 +16,12 @@ However, If you set platform = espressif32 and framework = arduino in platformio
* [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|

## How to use
Once executed, the IP address will be displayed on the screen and on the serial monitor.
(This is an example, so the actual IP will vary depending on the environment.)
Expand Down Expand Up @@ -75,10 +81,21 @@ Changes the horizontal image inversion.
Changes the vertical image inversion.
* Color Bar
Color bar display ON/OFF.

* Face Detection
Face detection ON/OFF
* Face Recognition
Face Recognition ON/OFF
**Note: Face recognition is a very heavy process.**

* Get Still
Obtains a still image.
* Start/Stop Stream
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.

* Save
Download incoming images.
* X
Expand All @@ -91,7 +108,7 @@ Refer to data sheets and other sources for register and function information.
**Caution** <ins>Be careful not to set inappropriate values to inappropriate registers. </ins>

## Changes from the original
* The application is now dedicated to M5Stack Core3.
* The application is now dedicated to M5Stack CoreS3.
* M5Unified base to work.
* Modified html for GC0308.
* Functions not present in GC0308 were omitted.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English](README.en.md)

<img src="./M5StackCoreS3_CameraWebServer.jpg" width="480">
<img src="https://user-images.githubusercontent.com/26270227/239725404-c5dd33c4-c511-4d05-a192-3d184ef4de8b.png" width="480">

## 概要
[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 向けに移植した物です。
Expand All @@ -16,6 +16,13 @@ platformio で platform = espressif32, framework = arduino なら同梱なので
* [gob_GC0308](https://github.com/GOB52/gob_GC0308)
* WiFi 接続可能な環境

## ビルド種別
|Env|説明|
|---|---|
|release|基本設定|
|release_face|顔検出、認識あり|


## 使い方
実行すると、画面とシリアルモニタに接続先 IP アドレスが表示されます。
下記は例なので実際は環境によって IP は異なります
Expand Down Expand Up @@ -76,10 +83,21 @@ platformio で platform = espressif32, framework = arduino なら同梱なので
垂直方向の画像反転を変更します。
* Color Bar
カラーバー表示の ON/OFF

* Face Detection
顔検知機能の ON/OFF
* Face Recognition
顔認識機能の ON/OFF
**注 顔認識は処理がとても重くなります。**

* Get Still
静止画像取得
* Start/Stop Stream
ストリーム受信の開始/終了
* Enroll Face
カメラに写っている顔を登録します。
登録すると Face Recogintion ON の時に侵入者(赤枠)扱いになりません。

* Save
受信画像をダウンロードします。
* X
Expand All @@ -92,7 +110,7 @@ platformio で platform = espressif32, framework = arduino なら同梱なので
**注意** <ins>適切でない値を適切でないレジスタへ設定しないように気をつけてください。</ins>

## オリジナルからの変更点
* M5StackCore3 専用のアプリケーションになった。
* M5StackCoreS3 専用のアプリケーションになった。
* M5Unified ベースで動作するようにした。
* GC0308 用に html を修正した。
* GC0308 に無い機能を割愛した。
Expand Down
5 changes: 5 additions & 0 deletions for_face.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x3d0000,
fr, data, , 0x3e0000, 0x20000,
19 changes: 19 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,22 @@ board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=debug
build_flags=${env.build_flags} ${option_debug.build_flags}
-Wl,-Map,output.map

; Enable face detection/recognition
[env:release_face]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=release
build_flags=${env.build_flags} ${option_release.build_flags} -DCWS_ENABLE_FACE
board_build.partitions = for_face.csv

[env:debug_face]
board = esp32s3box
board_build.arduino.memory_type = qio_qspi
upload_speed = 1500000
build_type=debug
build_flags=${env.build_flags} ${option_debug.build_flags} -DCWS_ENABLE_FACE
-Wl,-Map,output.map
board_build.partitions = for_face.csv
Loading

0 comments on commit a23f3dd

Please sign in to comment.