Porting of espressif/arduino-esp32 example CameraWebServer to M5Stack CoreS3 (GC0308).
Access CoreS3 from a browser via WiFi to control the camera and receive streaming.
It can also perform QR recognition.
- M5Unified
- esp32-camera
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
- WiFi connection available
Env | Description |
---|---|
release | Basic settings and QR recognition |
release_face | Support face detection and recognition |
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.)
setup(): Camera ready use: http;//192.168.1.20 to connect
Access that IP address from your browser.
The connection is made as follows, assuming that CoreS3 has the SSID / Password of the already connected it stored.
// main.cpp
WiFi.begin(); // Connects to credential stored in the hardware.
Please save the credential in some way or rewrite the source.
// main.cpp
WiFi.begin("Your SSID", "Your password");
- Resolution
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.
Menu | Description |
---|---|
NoEffect | No effect |
Negative | Negative effect |
Grayscale | Grayscale effect |
RedTint | Red tint effect |
GreenTint | Green tint effect |
BlueTint | Blue tint effect |
Sepia | Sepia effect |
- WB Mode
Change the white balance.
Menu | Description |
---|---|
Auto | Automatic |
Sunny | Sunny |
Cloudy | Cloudy |
Office | Fluorescent light |
Home | Light bulb |
-
Gain
Change the gain. -
H-Mirror
Changes the horizontal image inversion. -
V-Flip
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. -
Start/Stop Scan QR
Start/Stop recognize QR code. -
Save
Download incoming images. -
X
Stop receiving stream.
- Register Get/Set
The values can be set and retrieved for the camera registers.
Refer to data sheets and other sources for register and function information.
Caution Be careful not to set inappropriate values to inappropriate registers.
- The application is now dedicated to M5Stack CoreS3.
- M5Unified base to work.
- Modified html for GC0308.
- Functions not present in GC0308 were omitted.
- Add QR code recognition.