Skip to content

JavaScript SDK 1.4.5

Sample Code

The quickest and simplest way to kickstart your journey with the JavaScript SDK is by downloading and experimenting with our full-featured sample code:

IMPORTANT

In the above sample codes, the strings __YOUR_USER_ID__ and __YOUR_API_KEY__ should be replaced by your own User ID and API Key repectively. Please contact us to obtain your User ID and API Key.

Installation

In your NodeJS project, install the SDK with the npm install or yarn add commands. For example:

bash
npm install "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.4.5.tgz"
bash
yarn add "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.4.5.tgz"

IMPORTANT

Please use Webpack as the bundler for your production code. Other web bundling tool such as Vite is not supported yet.

TIP

If you are using Yarn v2 or later, you might need to include the package name in the command, such as yarn add vital-sign-camera@"https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.4.5.tgz".

What's new

1.4.5 (28-Mar-2024)

  • Fixed the redundant face mesh problem causing the home page scrollable.

1.4.4 (28-Mar-2024)

  • Fixed the wrong bounding box and face mesh locations.
  • Fixed the problem that the camera is turned on automatically when changing device.
  • Fixed a crash in drawImage.

1.4.3 (12-Mar-2024)

  • Fixed the display problems of face mesh and bounding box.

1.4.2 (28-Feb-2024)

  • Use the front facing camera by default if device or preferredCamera is not set.

1.4.1 (2-Feb-2024)

  • Fixed the bug that the visualization options can't be changed.

1.4.0 (16-Jan-2024)

  • New feature
    • Added onError to observe and handle errors.
  • Bug fixes
    • Fixed the problem that face lost error can't be detected if the face is out of bound.