Skip to content

JavaScript SDK 1.7.3 ​

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 ​

SDK file installation ​

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

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

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.7.3.tgz".

Alternatively, if you are not using NodeJS, you can install the SDK by adding the following line to your main HTML file:

html
<script src="vital-sign-camera.umd-1.7.3.js">

The file vital-sign-camera.umd-1.7.3.js is included in this sample project.

Model file installation ​

Copy the models folder to the root of the web hosting directory. The models files is included in the above sample projects.

What's new ​

1.7.3 (24-Sept-2024) ​

  • Reduced the face mesh animation intiial delay.
  • Fixed the freezing UI problem by calling the onInitialized event after FaceAPI is ready.

1.7.1 (12-Sept-2024) ​

  • Fixed a crash.

1.7.0 (9-Sept-2024) ​

  • Added enableChestROI in VitalSignEngineConfig for enhanced respiratory rate measurement. Default is false.