JavaScript SDK 1.8.4
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:
- Download JavaScript Plain HTML project
- Download JavaScript NodeJS project
- Download TypeScript NodeJS project
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:
npm install "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.8.4.tgz"yarn add "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.8.4.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.8.4.tgz".
Alternatively, if you are not using NodeJS, you can install the SDK by adding the following line to your main HTML file:
<script src="vital-sign-camera.umd-1.8.4.js">The file vital-sign-camera.umd-1.8.4.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.
NOTE
If the project is deployed to Google Cloud, some web servers, such as serve, might not function correctly, causing the facial skin age feature to fail. To prevent this issue, use http-server instead.
What's new
1.8.4 (2-May-2025)
- Fixed missing type declarations.
1.8.3 (11-Mar-2025)
- Tuned the x-range of the centered position check.
1.8.2 (28-Feb-2025)
- Tuned the default camera resolution to 1080p.
1.8.1 (25-Feb-2025)
- Optimized the default camera resolution and fps to improve accuracy.
- Fixed the issue that BGR signal is used for V2 backend.
1.8.0 (5-Feb-2025)
- Added CrimsonLion (V2 Backend) support.
- Added Beauty Anaylsis feature.
- Added face detection result sampling to improve accuracy.
- Improved the sample app by displaying more vital signs.