|
Novarum DX Ltd
|
Document ID: IFU058
|
Overview
Version 1.1.0 of the Web (WASM) Reader SDK, @novarumdx/ndx-imaging-web, is a maintenance and enhancement release building on 1.0.0. It focuses on camera fidelity and overlay accuracy - correct handling of non-4:3 cameras, Fit/Fill preview alignment, and a fix for the device-tilt misalignment reported in 1.0.0 - plus a packaging fix that ships the self-contained Vanilla browser bundle in the published package. It bundles the updated shared core @novarumdx/ndx-imaging-core 1.1.1.
Reader-file format (carried over from 1.0.0): reader files must use the new format with the {estimators: [ wrapper.
-
Safety classification: IEC 62304 Class B. Algorithmic behaviour is provided by the shared core and verified by reference in the SDKCORE Verification Report (1.1.1-core).
2. What's New and Changed
New and improved
-
Camera resolution and proportions (SDKWASM-177): the SDK requests the camera at the assay's configured reader resolution and delivers a correctly-proportioned frame to the engine's fixed 640x480 (4:3) input. Non-4:3 sources (e.g. 16:9 webcams, 720p/1080p presets) are centre-cropped to 4:3, not stretched, so the analysed image is not geometrically distorted. If the camera cannot supply at least the minimum usable resolution (480x360), the SDK reports a
camera-resolution-too-lowerror and does not start the scan. -
Fit/Fill overlay alignment (SDKWASM-178): the alignment wireframe now lines up with the visible camera picture in both Fit (letterboxed) and Fill (cropped) preview modes, on React and Vanilla, in portrait and landscape.
-
Consistent strip-done icon (SDKWASM-168): the Vanilla entry point now renders the strip-complete (green check) icon, matching React.
Fixes
-
Device-tilt wireframe misalignment (SDKWASM-155): the capture transform is re-synced on device rotation, so the wireframe stays aligned with the cassette when the device is tilted. (This was the High known issue in 1.0.0.)
-
Vanilla packaging (SDKWASM-167): the published package now includes the self-contained browser bundle (
ndx-imaging-web.browser.mjs) and copies it into the host app on install, so the documented Vanilla quickstart works from the published package with no manual steps.
Under the hood
-
Shared core updated to
@novarumdx/ndx-imaging-core1.1.1 (SDKWASM-183), carrying the SDKCORE-468 strip-status timing fix. -
Build toolchain upgraded to Node 22 LTS (SDKWASM-162); stricter index-access type-checking enabled (SDKWASM-171). No change to delivered behaviour.
3. Distribution & Installation
-
Package:
@novarumdx/ndx-imaging-web(npm), with@novarumdx/ndx-imaging-web/reactfor React. -
Registry: the customer-facing AWS CodeArtifact npm repository
novarum.client.npm. Access credentials are issued per organisation by Novarum DX. -
Runtime files: the post-install step copies
imagingWorker.js,ndx_imaging_wasm.js,ndx_imaging_wasm.wasmandndx-imaging-web.browser.mjsinto the host application, which must serve them as static files. (The self-contained browser bundle now ships in the package - SDKWASM-167.) -
Getting started: see the Web Integration Guides (React and Vanilla JS).
4. Compatibility & Requirements
|
Item |
Requirement |
|---|---|
|
Browsers |
Chrome 80+, Safari 15+, Firefox 79+, Edge 80+ |
|
Node.js / npm |
Node 18+, npm 8+ (build/install only) |
|
Secure context |
Camera and Screen Wake Lock require HTTPS (or |
|
Headers |
No |
5. Versioning Summary
|
Component |
Version |
Notes |
|---|---|---|
|
Web (WASM) Reader SDK |
1.1.0 |
|
|
Shared core dependency |
1.1.1 |
|
|
SDK family |
v4 |
Web platform of the v4 Reader SDK generation |
6. Known Issues
None.
7. Summary of Developer Actions
|
Area |
Action |
|---|---|
|
Upgrading from 1.0.0 |
No code changes required. The Vanilla browser bundle now ships in the package, so remove any manual bundle-copy workaround from your setup. |
|
Registry access |
Configure the AWS CLI with the read-only credentials Novarum DX issues you, and place the provided |
|
Install |
|
|
Serve |
Serve the app over HTTPS (or localhost) so the camera works; do not open via |
|
Integrate |
Follow the React or Vanilla JS integration guide; supply your cassette |