JavaScript SDK 1.6.2
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.6.2.tgz"yarn add "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.6.2.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.6.2.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.6.2.js">The file vital-sign-camera.umd-1.6.2.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.6.2 (4-Jul-2024)
- Added API to get the version.
- Implemented duplicated RGB values detection.
1.6.1 (9-May-2024)
- Added
FacePositionConditioninScanConditions.