16 lines
685 B
Markdown
16 lines
685 B
Markdown
# 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>
|
|
```
|