TypeScript SDK Reference / createVitalSignCamera
Function: createVitalSignCamera()
createVitalSignCamera(
props):VitalSignCameraInterface
Create a new Vital Sign Camera instance for performing camera-based vital sign scanning. This is the main entry point for using the SDK to measure vital signs through a webcam.
Parameters
props
Configuration properties for the camera
Returns
A VitalSignCameraInterface instance ready for use
Example
ts
// Basic usage
const camera = createVitalSignCamera({
isActive: true,
userInfo: {
age: 30,
gender: Gender.Male,
height: 175,
weight: 70
}
});
// Bind to video element and start scanning
camera.bind(document.getElementById('video'));
camera.startScanning();