空間 AI エージェントを構築する — デプロイガイド

GitHub でソースを見る
プリセット

Face Recognition

SenseCAP Watcher recognizes enrolled faces and greets them. Enroll and manage faces from the panel (up to 20 people), and enable, query or delete faces by voice.

  • Devices: SenseCAP Watcher, USB-C data cable.
  • Network: 2.4 GHz WiFi.
  • Account: Xiaozhi App for device binding.
1

Flash Xiaozhi Firmware

Write the voice assistant program to the Watcher to enable voice interaction.

配線

Connect Device

  1. Connect Watcher to computer via USB-C cable
  2. The port is usually selected for you; if not, pick the COM port containing SERIAL-B on Windows, or the higher-numbered one on macOS / Linux (...53 / ttyACM1)
  3. Click the Flash button
トラブルシューティング
SymptomFix
Serial port not foundTry a different USB cable or USB port
Wrong port picked (flash hangs or fails instantly)Try the other CH342 port in the list
No serial data receivedHold BOOT button, press RESET, release BOOT, then retry
Flash failedUnplug and reconnect the device

2

Flash Face Recognition Firmware

Write the face recognition program to the Watcher's AI chip.

配線

Connect Device

  1. Ensure Watcher is connected to computer
  2. The port is usually selected for you; if not, pick the COM port containing SERIAL-A on Windows, or the lower-numbered one on macOS / Linux (...51 / ttyACM0) — not the same port as the previous step
  3. Click the Flash button
  4. After clicking Flash, press the reset button on the device to enter flash mode
トラブルシューティング
SymptomFix
Device not respondingUnplug and reconnect the USB cable
Flash stuck or failsPress the reset button and try again
Flash fails repeatedlyUse a different USB cable or port
Flash fails at 99% or restarts mid-flashClose other apps using serial ports, reconnect USB and retry

3

Configure Xiaozhi

Connect the Watcher to WiFi and bind it to your account using the mobile app.

Connect to WiFi

Device will prompt for network setup on first boot. Follow voice instructions to connect to WiFi.

Bind Xiaozhi Account

  1. Open Xiaozhi App
  2. Scan the QR code displayed on device
  3. Complete the binding process

Test Voice

Wake up the device by saying "Xiaozhi Xiaozhi" to test voice interaction. If it responds normally, the setup is successful.

トラブルシューティング
SymptomFix
WiFi connection failedEnsure using 2.4 GHz network, check password
QR code not showingRestart device, wait for boot complete

4

Face Database Management

Manage the face recognition database through the app interface.

How to Use

  1. Click Connect to start the camera preview
  2. You'll see a live feed with face detection boxes
  3. Use the Face Database panel below to manage enrolled faces

Register a New Face

  1. Click Register in the Face Database panel
  2. Enter a name for the person
  3. Click Start Capture — face the camera with good lighting
  4. Wait for the capture to complete (5 seconds)
  5. The new face will appear in the table
トラブルシューティング
SymptomFix
"Please complete Step X first"Go back and select the correct serial port in the indicated step
Camera not showingCheck USB connection, try refreshing ports in Step 2
Enrollment failedEnsure good lighting, face the camera directly, try again
デプロイ後

Step 1: Enroll faces

Enroll faces in the Face Database panel (see "Register a New Face" above).

Step 2: Enable face recognition by voice

Unplug the USB cable, wake up the device by saying "Xiaozhi Xiaozhi", then say:

"Turn on face recognition"

Once confirmed, Watcher will automatically scan for faces while idle.

Step 3: Experience automatic recognition

Walk in front of the Watcher; it recognizes you and greets you by name.

Voice Commands

Say thisEffect
"Turn on face recognition"Enable recognition (required on first use)
"Turn off face recognition"Disable recognition
"Delete face XXX"Remove an enrolled face
"Who do you know"List all enrolled faces
"Turn on familiar mode"Only alert for strangers, ignore familiar faces
"Turn off familiar mode"Greet everyone