Merge branch 'doc/update_esp-eye_guides' into 'master'

Doc/update esp eye guides

See merge request face-recognition-framework/esp-who!35
pull/25/head
XiaochaoGONG 2019-01-10 11:34:56 +08:00
commit 21792198c1
5 changed files with 235 additions and 203 deletions

View File

@ -0,0 +1,191 @@
# ESP-EYE Getting Started Guide
[[中文]](../../zh_CN/get-started/ESP-EYE_Getting_Started_Guide.md)
## What You Need
* 1 × ESP-EYE V2.1 board
* 1 × Micro USB cable
* 1 × PC with Windows, Linux or Mac OS
## Overview
ESP-EYE is an ESP32-based development board that integrates a digital microphone, an 8 MB PSRAM and a 4 MB flash, while also providing an external 2-Megapixel camera. These features make the board ideal for applications relating to face detection, face recognition and speech recognition. Besides, the board can also support image transmission over Wi-Fi and debugging through a Micro USB port, which enables the development of advanced AI solutions.
## Hardware Preparation
The list and figure below describe the key components, interfaces and functions of the ESP-EYE development board:
![ESP-EYE image](../../_static/get-started/esp-eye_callout.png)
* **3D_PIFA Antenna**
A 3D PIFA antenna. With the R14 resistor users can select the external IPEX antenna, whereas with the R15 resistor they can select the 3D antenna.
* **IPEX Connector**
Used for connecting the external IPEX antenna. With the R14 resistor users can select the external IPEX antenna, whereas with the R15 resistor they can select the 3D antenna.
* **ESP32 Chip**
A 2.4 GHz Wi-Fi and Bluetooth combo chip.
* **Crystal Oscillator**
Provides an external clock to ESP32.
* **Flash & PSRAM**
Provides memory for storing applications.
* **CP2102 USB-to-UART Chip**
Converts the USB signals to UART signals.
* **USB Port**
Provides power supply to the whole system.
* **LDO Power Supply**
Provides the required power supply to the ESP32 chip, camera and LED indicators.
* **Side Tactile Button**
A function key.
* **Top Tactile Button**
Reset/Boot button. We recommend that you do not configure this button for other uses.
* **LED Indicators**
The board has a red and a white indicator. Different flashing combinations of the red and white indicators reflect the different statuses of the board, e.g. waking up, networking, face detection, face recognition, face enrollment and face recognition.
* **Camera**
An external 2-Megapixel camera module for face detection, face recognition and Face ID enrollment.
* **Camera Connector**
Used for connecting the external camera.
* **MIC**
A digital microphone for voice control functions.
* **SPI Port**
A reserved port for data transmission.
## Software Development
ESP-EYE supports firmware downloading with a Linux, MacOS or Windows PC. At present, users must set up a toolchain in the development environment before starting software development.
### Preparation
- Go through [Get Started](https://docs.espressif.com/projects/esp-idf/en/v3.1.1/get-started/index.html) to set up the toolchain in your PC.
- Connect the ESP-EYE to your PC with a Micro USB cable.
- Launch your development-environment tool, such as Terminal (Linux/MacOS) or MinGW (Windows).
### Getting ESP-WHO
To obtain a local copy, open your Terminal (such as Terminal in a Linux environment), go to the directory in which you want to store ESP-WHO, and clone the repository by using the `git clone` command:
```
git clone --recursive https://github.com/espressif/esp-who.git
```
ESP-WHO will be downloaded into an automatically-generated folder named `esp-who`.
> Do not miss the `--recursive` option. If you have already cloned ESP-WHO without this option, please run another command to get all the submodules: `git submodule update --init --recursive`
### Setting up a Path to ESP-WHO
Please follow the instruction described in [Setup Path to ESP-IDF](https://docs.espressif.com/projects/esp-idf/en/v3.1.1/get-started/index.html#get-started-setup-path) to configure the `IDF_PATH` variable to `esp-who/esp-idf`.
### Downloading Firmware
This section describes the steps for downloading firmware to ESP-EYE (taking the Linux operating system as an example):
- Power up ESP-EYE by connecting it to your PC with a USB cable.
- Run `ls /dev/ttyUSB*` in your Terminal to check if the board has connected itself to your PC successfully. If the connection is successful, you will see a newly generated item named e.g, `/dev/ttyUSB0` on your list, after running the command.
- Go to an example directory, such as `cd esp-who/examples/single_chip/recognition_solution`.
- Run `make defconfig` to complete the default configuration.
- Run `make menuconfig` and go to `Serial flasher config` -> `Default serial port` to configure the device name, according to the name of the item you saw in the second step, e.g. `/dev/ttyUSB0`. Then, save it and exit.
- Run `make flash` to download the firmware.
### Checking Logs
This section describes the steps for checking the logs on your Terminal (taking the Linux operating system as an example).
- Launch your Terminal.
- Run `make monitor`.
> Note: The ESP-EYE development board will reboot after this operation.
### Key Process
The figure below describes the workflow of ESP-EYE:
![esp-eye-workflow](../../_static/get-started/work_flow_en.png)
#### 1. Voice Wake-up
ESP-EYE awaits to be woken up after powering up (Red LED on and white LED off). The board wakes up after recognizing the wake-up command "Hi Lexin", and then awaits for networking (Red LED flashing and white LED off). Subsequently, users can initiate the networking.
#### 2. Networking
Users can connect their PCs or mobile phones to ESP-EYE's Wi-Fi (by default), with the following information:
- Username: esp-eye-xxxx (xxxx should be the board's MAC address)
- Password: not needed
Alternatively, users can also follow the steps below to configure the username and password of the board's Wi-Fi connection:
- Launch your Terminal.
- Run `make menuconfig` and complete the configuration, as instructed in the figure below:
![wifi connection](../../_static/get-started/wifi_connection.jpeg)
> Note: After reconfiguring the Wi-Fi username and password, you will have to restart from the point of downloading firmware.
#### 3. Face Detection
ESP-EYE starts the face detection after networking. Users can see the real-time image captured by the board, through their browser (address: `192.168.4.1/face_stream`). During this step, the red LED is off and the white LED is on.
#### 4. Face Recognition
After detecting a face, ESP-EYE will start the face
recognition if there are any enrolled Face IDs stored in the board:
- When there is a match, the red LED on the board flashes once and the browser displays **HELLO ID XXX**.
- When there is no match, the board shows no signs and the browser displays **WHO?**.
If there is no enrolled Face ID, the board continues the face-detecting process. You should enroll at least one Face ID if you want to start face
recognition.
#### 5. Add/delete a Face ID
The users can add/delete a Face ID after the network is successfully established.
##### 5.1 Add a Face ID
![Enroll a Face ID](../../_static/get-started/face_id_enrollment_en.png)
- Single-click the Side Tactile Button to enroll a new Face ID. At this point, the red LED is on and the browser displays **START ENROLLING**;
- Once you put a face in front of the camera, the face-sampling starts automatically. The red LED flashes whenever the board gets a face sample and the browser displays the ordinal number of the current face sample, i.e. **THE 1st SAMPLE** etc. By default, the board has to take three samples to add one Face ID. Users can configure the number of samples needed for one Face ID. (Please adjust your position/distance from the camera and try again if you cannot see the red LED flashing for some time).
- After the Face ID enrollment, the red LED on the board is off and the browser displays **ENROLLED FACE ID XXX**;
- The board enters Face Detection after the Face ID enrollment.
Currently, ESP-EYE can enroll up to 10 Face IDs. Please note that the maximum number of enrolled Face IDs can be configured according to how users allocate the flash memory. However, we recommend a number that is no greater than 30.
##### 5.2 Delete a Face ID
- Double-click the Side Tactile Button to delete an existing Face ID.
- After that, the board deletes the earliest record of all the existing enrolled Face IDs. The white LED on the board flashes, and the browser displays: **XXX ID(S) LEFT**.
#### Troubleshooting
The board returns to the "awaiting to be woken up" status when there are network anomalies, such as "network disconnection" and "network timeout".

View File

@ -1,190 +0,0 @@
# ESP-EYE Getting Started Guide
[[中文]](../../zh_CN/get-started/ESP-EYE_V2.0_Getting_Started_Guide.md)
## What You Need
* 1 × ESP-EYE V2.0 board
* 1 × Micro USB cable
* 1 × PC loaded with Windows, Linux or Mac OS
## Overview
ESP-EYE is an ESP32-based development board that integrates a digital microphone, 8 MB PSRAM and 4 MB flash, as well as provides an external 2-million-pixel camera, which makes the board very suitable for applications in the fields of face detection, face recognition, and speech recognition. Besides, the board can also support image transmission over Wi-Fi and debugging using the Micro USB port, which enables the users' development of advanced AI solutions.
## Hardware Preparation
The list and figure below describe the key components, interfaces, and controls of the ESP-EYE development board:
![ESP-EYE image](../../_static/get-started/esp-eye_callout.png)
* **3D_PIFA Antenna**
A 3D PIFA antenna. Users can choose the R14 resistor to select external IPEX antenna or choose the R15 resistor to select the 3D antenna.
* **IPEX Connector**
Used for connecting external IPEX antenna. Users can choose the R14 resistor to select external IPEX antenna or choose the R15 resistor to select the 3D antenna.
* **ESP32 Chip**
A 2.4 GHz Wi-Fi and Bluetooth combo chip
* **Crystal Oscillator**
Provides an external clock for ESP32.
* **Flash & PSRAM**
Provides memory to store applications.
* **CP2102 USB-to-UART Chip**
Converts the USB signals to UART signals.
* **USB Port**
Provides the power supply to the whole system.
* **LDO Power Supply**
Provides the required power supplies to the ESP32 chip, camera and LED indicators.
* **Side Tactile Button**
A function key
* **Top Tactile Button**
Reset/Boot button. We recommend that you do not configure this button for other uses.
* **LED Indicators**
The board has a red indicator and a white indicator. Different combinations of red and white indicators reflect the different status of the board, such as waking up, networking, face detection, face recognition, face enrollment, and face recognition...
* **Camera**
An external 2-million-pixel camera module for face detection, face recognition and Face ID enrollment
* **Camera Connector**
Used to connect the external camera.
* **MIC**
A digital microphone for voice control functions
* **SPI Port**
A reserved port for data transmission
## Software Development
ESP-EYE supports firmware downloading with a PC loaded with Linux, MacOs or Windows operating systems. For now, users must set up toolchain in the development environment before starting the software development.
### Preparation
- Go through [Get Started](https://docs.espressif.com/projects/esp-idf/en/v3.1.1/get-started/index.html) to set up toolchain in your PC;
- Connect ESP-EYE to your PC with a Micro USB cable;
- Launch your development environment tool, such as Terminal (Linux/MacOS) or MinGW (Windows).
### Get ESP-WHO
To obtain a local copy: open your Terminal (such as Terminal in a Linux environment), navigate to the directory you want to put ESP-WHO, and clone the repository using `git clone` command:
```
git clone --recursive https://github.com/espressif/esp-who.git
```
ESP-WHO will be downloaded into an automatically generated folder named `esp-who`.
> Do not miss the `--recursive` option. If you have already cloned ESP-WHO without this option, please run another command to get all the submodules: `git submodule update --init --recursive`
### Set UP Path to ESP-WHO
Please follow the instruction described in [Setup Path to ESP-IDF](https://docs.espressif.com/projects/esp-idf/en/v3.1.1/get-started/index.html#get-started-setup-path) to configure the `IDF_PATH` variable to `esp-who/esp-idf`.
### Download Firmware
This section describes the steps to download firmware to ESP-EYE (taking the Linux operating system as an example):
- Power up ESP-EYE by connecting it to your PC with a USB cable.
- Run `ls /dev/ttyUSB*` in your Terminal to check if the board has connected itself to your PC successfully. You will see a newly generated item named something like `/dev/ttyUSB0` in your list after running the command if the connection is successful.
- Navigate to an example directory, such as `cd esp-who/examples/single_chip/recognition_solution`.
- Run `make defconfig` to complete default configuration.
- Run `make menuconfig`, and go to `Serial flasher config` -> `Default serial port` to configure the device name to the item you saw in the second step, something like `/dev/ttyUSB0`. Then, save and exit.
- Run `make flash` to download firmware.
### Check Logs
This section describes the steps to check logs with your Terminal (taking the Linux operating system as an example).
- Launch your Terminal;
- Run `make monitor`.
> Note: The ESP-EYE development board will reboot after this operation.
### Key Process
The figure below describes the workflow of ESP-EYE:
![esp-eye-workflow](../../_static/get-started/work_flow_en.png)
#### 1. Voice Wake-up
ESP-EYE awaits to be woken up after powering up (Red LED on and white LED off). The board wakes up after recognizing the wake-up command "Hi Lexin", then awaits for networking (Red LED flashing and white LED off). Now, users can initiate the networking.
#### 2. Networking
Users can connect their PCs or mobile phones to ESP-EYE's Wi-Fi with the following information (by default):
- Username: esp-eye-xxxx (xxxx indicates the board's MAC address)
- Password: no needed
Alternatively, users can also follow the steps below to configure the username and password of the board's Wi-Fi:
- Launch your Terminal;
- Run `make menuconfig`, and complete the configuration as instructed in the figure below:
![wifi connection](../../_static/get-started/wifi_connection.jpeg)
> Note: You will have to restart from the step of downloading firmware after you have reconfigured the Wi-Fi username and password.
#### 3. Face Detection
ESP-EYE starts the face detection after networking. Users can see the real-time image, captured by the board, with their browser (address: `192.168.4.1/face_stream`). During this, the red LED is off and the white LED is on.
#### 4. Face Recognition
After detecting a face, ESP-EYE will start the face
recognition if there are any enrolled Face IDs stored in the board:
- When there is a match: the red LED on the board flashes once, and the browser displays **HELLO ID XXX**.
- When there isn't any match: the board shows no signs, and the browser displays **WHO?**”.
If there isn't any enrolled Face ID, the board continues face detecting. Therefore, please at least enroll one Face ID if you want to start the face
recognition.
#### 5. Add/delete a Face ID
The users can add/delete a Face ID after the network is successfully established.
##### 5.1 Add a Face ID
![Enroll a Face ID](../../_static/get-started/face_id_enrollment_en.png)
- Single-click the Side Tactile Button to enroll a new Face ID. At this moment, the red LED is on, and the browser displays **START ENROLLING**;
- Stand in front of the camera, and the face sampling starts automatically. The red LED flashes whenever the board gets a face sample, and the browser displays the numerical order of the current face sample, such as **THE 1st SAMPLE**. By default, the board has to take three samples to add one Face ID. Users can configure the number of samples needed for one Face ID. (Please adjust your position/distance from the camera and try again if you don't see the red LED flashing for a long time).
- After the Face ID enrollment, the red LED on the board is off and the browser displays **ENROLLED FACE ID XXX**;
- The board enters Face Detection after the Face ID enrollment.
Currently, ESP-EYE can enroll up to 10 Face IDs. Please note that the maximum number of enrolled Face IDs can be configured based on how the users allocate the flash memory. However, we recommend a number that is no greater than 30.
##### 5.2 Delete a Face ID
- Double-click the Side Tactile Button to delete an existing Face ID;
- After that, the board deletes the earliest record of all the existing enrolled Face ID. The white LED on the board flashes, and the browser displays: **XXX ID(S) LEFT**.
#### Troubleshooting
The board returns to the status of "waiting to be woken up" when there are any network anomalies, such as "network disconnection" and "network timeout".

View File

@ -1,10 +1,10 @@
# ESP-EYE 入门指南
[[EN]](../../en/get-started/ESP-EYE_V2.0_Getting_Started_Guide.md)
[[EN]](../../en/get-started/ESP-EYE_Getting_Started_Guide.md)
## 准备工作
* 1 × ESP-EYE V2.0 开发板
* 1 × ESP-EYE V2.1 开发板
* 1 × Micro USB B 电缆
* 1 × PCWindows、Linux 或 Mac OS
@ -193,6 +193,3 @@ ESP-EYE 开发板的工作流程如下图所示:
#### 异常情况
当出现“网络断开”或“联网超时”等异常情况时,开发板会回到“等待唤醒”状态。
Positioning of 5Gtowers linked by a “diber backbone” at Millbrook.( Millbrook)
Millbrook 试验场中,通过 “diber backbone” 相互连接的 5G 电信塔。图片来源Millbrook

View File

@ -72,3 +72,21 @@ Please see [here](https://github.com/espressif/esp-who).
The keyword **DETECTED** appears whenever ESP32 detects a human face.
## Advance Configuration
In this example, several parameters can be configured by customers to better support different customized scenarios. For the detailed description of these parameters, please see [Here](https://github.com/espressif/esp-face/tree/master/face_detection).
Besides, please see below for the recommended configuration for general-purpose scenarios:
```
mtmn_config.min_face = 80;
mtmn_config.pyramid = 0.7;
mtmn_config.p_threshold.score = 0.6;
mtmn_config.p_threshold.nms = 0.7;
mtmn_config.r_threshold.score = 0.7;
mtmn_config.r_threshold.nms = 0.7;
mtmn_config.r_threshold.candidate_number = 4;
mtmn_config.o_threshold.score = 0.7;
mtmn_config.o_threshold.nms = 0.4;
mtmn_config.o_threshold.candidate_number = 1;
```

View File

@ -96,3 +96,19 @@ ESP32 checks if the newly detected face matches any existing **Face ID**, whenev
* If No, the Serial Terminal displays `No Matched ID`:
![recognition_no_matched](../../../img/no_matched.png)
## Advance Configuration
Users can change the configuration by adjusting some macro definitions specified in the `app_facenet.h` file:
- `ENROLL_CONFIRM_TIMES`: the number of face samples required to enroll one new **Face ID**. By default, this parameter is set to 3, indicating three face samples are required to enroll a new **Face ID**.
- `FACE_ID_SAVE_NUMBER`: the number of **Face IDs** that are allowed to be enrolled. By default, this parameter is set to 1, indicating only one **Face ID** can be stored in the RAM when the system boots up. Users can configure this parameter to a bigger value if they want to enroll more than one **Face ID**.
Users can also store the enrolled **Face IDs** in the flash of the board, so the existing **Face IDs** won't be lost when the board powers off. To achieve this, please use the following functions, provided in `esp-face`:
- `enroll_to_flash()`: Stores the enrolled **Face IDs** in the flash
- `read_id_from_flash()`: Reads all the enrolled **Face IDs** stored in the flash
- `delete_id_in_flash()`: Deletes the earliest enrolled **Face IDs** stored in the flash
For the detailed description of more parameters for face recognition, please see [Here](https://github.com/espressif/esp-face/tree/master/face_recognition).