Welcome to WiFi Camera Module repository
3. Face Detection
Face detection
- 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 detection mode. Use the following command to send ai_mode:2 through the serial assistant. After successful configuration, the module will restart and print the current firmware version. Then, face detection can start, as shown in the figure

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

- Start recognizing faces If recognized, the coordinates of the upper left corner and lower right corner of the first frame will be sent out 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, # Note: You need to open the screen to start recognition. If the screen is closed in the middle, the recognition will also be closed.
Face
Result:

Serial port information:
