Add CUTOS capability and core API examples
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# demo-id-card-reader
|
||||
|
||||
CUTOS 4.0 end-to-end ID Card Reader LWA using `@cutos/device-id-card-reader` and `device-id-card-reader-provider-ghc825`.
|
||||
|
||||
The LWA connects automatically and starts continuous reading. A successful card is displayed immediately, the reader enters a five-second `cooldown`, and then returns automatically to `reading`. Use Stop to enter `idle`. Portrait reading is optional; keep the card steadily on the reader for at least two seconds.
|
||||
|
||||
Set `params.host` to `mock` in `public/config.json` for browser-only UI development.
|
||||
|
||||
```sh
|
||||
npm install
|
||||
npm run dev
|
||||
npx cutos lwa build
|
||||
npx cutos lwa upload
|
||||
npx cutos lwa publish demo-id-card-reader --device <device-id>
|
||||
```
|
||||
Reference in New Issue
Block a user