Skip to content

JavaScript SDK 1.0.5

Sample Code

The easiest and fastest way to get started with the SDK is to download and try the sample code. We provide full featured samples for different frameworks and platforms for developer to start with:

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.0.5.tgz"
bash
yarn add "https://sdk.panoptic.ai/npm/js-vital-sign-camera-1.0.5.tgz"

IMPORTANT

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

What's new

1.0.5

  • Removed FPS debug log.
  • Fixed the problem that a extra instance of VitalSignEngine is created, causing a 403 forbidden error.

1.0.4

  • Fixed the problem that the error is not propagated to event handler.
  • Updated the sample code with error handling code.
  • By default loads the MediaPipe models from CDN.

1.0.3

  • Fixed the problem that faceLostTimeout config is not working.

1.0.2

  • Load the MediaPipe models from CDN.

1.0.1

  • Fixed the wrong bounding box position in iPad portrait mode.
  • Fixed the iOS 17 or above video jumping problem.