Add AI face capability demos

This commit is contained in:
yankun
2026-07-26 20:58:27 +08:00
parent 7cc505a5e2
commit d6a69cf906
32 changed files with 1266 additions and 0 deletions
@@ -0,0 +1,20 @@
# Demo AI Face Service
This LWA demonstrates the complete browser-to-Gateway face workflow:
1. `@cutos/ai-face-detector` captures one qualified face locally.
2. `@cutos/gw-client` connects with the CUTOS device credentials obtained from `@cutos/core`.
3. `@cutos/ai-face-service` creates the selected collection and invokes registration, lookup, listing, search, comparison, removal, and clearing.
During SDK development, the demo references `file:../sdk`. After `@cutos/ai-face-service` is published, replace it with `^4.0.0` and regenerate `package-lock.json`.
## Run
```bash
npm install
cutos lwa build
cutos lwa upload --upload-mode oss
cutos lwa publish --device <device-id>
```
The target CUTOS Runtime must provide device information including Gateway credentials (`id`, `gwi`, `token`, and `gwUrl`).