|
| 1 | +# M5StackCoreS3_CameraWebServer |
| 2 | + |
| 3 | +[日本語](README.md) |
| 4 | + |
| 5 | +<img src="./M5StackCoreS3_CameraWebServer.jpg" width="480"> |
| 6 | + |
| 7 | +## Overview |
| 8 | +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). |
| 9 | +Access CoreS3 from a browser via WiFi to control the camera and receive streaming. |
| 10 | + |
| 11 | + |
| 12 | +## Required libraries |
| 13 | +* [M5Unified](https://github.com/m5stack/M5Unified) |
| 14 | +* [es32-camera](https://github.com/espressif/esp32-camera/tree/master) |
| 15 | +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. |
| 16 | +* [gob_GC0308](https://github.com/GOB52/gob_GC0308) |
| 17 | +* WiFi connection available |
| 18 | + |
| 19 | +## How to use |
| 20 | +Once executed, the IP address will be displayed on the screen and on the serial monitor. |
| 21 | +(This is an example, so the actual IP will vary depending on the environment.) |
| 22 | +``` |
| 23 | + setup(): Camera ready use: http;//192.168.1.20 to connect |
| 24 | +``` |
| 25 | +Access that IP address from your browser. |
| 26 | + |
| 27 | +### When WiFi connection fails |
| 28 | +The connection is made as follows, |
| 29 | +assuming that CoreS3 has the SSID / Password of the already connected it stored. |
| 30 | +```cpp |
| 31 | +// main.cpp |
| 32 | + WiFi.begin(); // Connects to credential stored in the hardware. |
| 33 | +``` |
| 34 | +Please save the credential in some way or rewrite the source. |
| 35 | +```cpp |
| 36 | +// main.cpp |
| 37 | + WiFi.begin("Your SSID", "Your password"); |
| 38 | +``` |
| 39 | + |
| 40 | +## Browser screen description |
| 41 | +### Basic settings |
| 42 | +* Resolution |
| 43 | +The currently set camera resolution is displayed. The resolution cannot be changed. |
| 44 | +* Contrast |
| 45 | +Change the contrast. |
| 46 | +* Special Effect |
| 47 | +Change the special effect. |
| 48 | + |
| 49 | +|Menu|Description| |
| 50 | +|---|---| |
| 51 | +|NoEffect|No effect| |
| 52 | +|Negative|Negative effect| |
| 53 | +|Grayscale|Grayscale effect| |
| 54 | +|RedTint|Red tint effect| |
| 55 | +|GreenTint|Green tint effect| |
| 56 | +|BlueTint|Blue tint effect| |
| 57 | +|Sepia|Sepia effect| |
| 58 | + |
| 59 | +* WB Mode |
| 60 | +Change the white balance. |
| 61 | + |
| 62 | +|Menu|Description| |
| 63 | +|---|---| |
| 64 | +|Auto|Automatic| |
| 65 | +|Sunny|Sunny| |
| 66 | +|Cloudy|Cloudy| |
| 67 | +|Office|Fluorescent light| |
| 68 | +|Home|Light bulb| |
| 69 | + |
| 70 | +* Gain |
| 71 | +Change the gain. |
| 72 | +* H-Mirror |
| 73 | +Changes the horizontal image inversion. |
| 74 | +* V-Flip |
| 75 | +Changes the vertical image inversion. |
| 76 | +* Color Bar |
| 77 | +Color bar display ON/OFF. |
| 78 | +* Get Still |
| 79 | +Obtains a still image. |
| 80 | +* Start/Stop Stream |
| 81 | +Start/Stop receiving stream. |
| 82 | +* Save |
| 83 | +Download incoming images. |
| 84 | +* X |
| 85 | +Stop receiving stream. |
| 86 | + |
| 87 | +### Advanced settings |
| 88 | +* Register Get/Set |
| 89 | +The values can be set and retrieved for the camera registers. |
| 90 | +Refer to data sheets and other sources for register and function information. |
| 91 | +**Caution** <ins>Be careful not to set inappropriate values to inappropriate registers. </ins> |
| 92 | + |
| 93 | +## Changes from the original |
| 94 | +* The application is now dedicated to M5Stack Core3. |
| 95 | +* M5Unified base to work. |
| 96 | +* Modified html for GC0308. |
| 97 | +* Functions not present in GC0308 were omitted. |
0 commit comments