Welcome to WiFi Camera Module repository
5. Person recognition
Person recognition
- First determine whether the version of the image transmission module is the AI version firmware. If you already know the firmware version, you can ignore this step and use the wifi_ver command to query, as shown in the figure below

- Switch the mode to face recognition mode. Use the following command to send ai_mode:4 through the serial assistant. After successful configuration, the module will restart and print the current firmware version, and then face recognition can start, as shown in the figure

Note: If the current mode is already face recognition mode, the module only returns ok

- Send KEY_MENU through the serial port to enter the currently detected face. If the entry is successful, the image will be displayed as shown below

- Send KEY_PLAY through the serial port to make the module start recognizing the current face and send the coordinates of the upper left and lower right corners of the first frame and the entered face number through the serial port. The specific content is $upper left corner x-axis coordinate, upper left corner y-axis coordinate, lower right corner x-axis coordinate, lower right corner y-axis coordinate, # @ID: face number! Note: You need to open the screen to start recognition. If the screen is closed in the middle, the recognition will also be closed. If the face is not entered, the face number is -1
Entered face and recognized

Not entered face and detected

Serial port information:

- If you want to delete the face entered into the system (starting from the last entry), send KEY_DOWN through the serial port to delete it. You need to detect faces before you can delete them. If you delete successfully, the corresponding result "X IDS left" (x represents the number of faces still stored in the system) will be displayed, as shown in the figure
