Appearance
Measurement Modes
The SDK supports three measurements modes - face measurements, finger measurements and Polar measurements.
Face Measurement
A face measurement is performed by facing the front (selfie) camera.
Dart
try {
LicenseDetails licenseDetails = LicenseDetails("<ENTER_YOUR_LICENSE_KEY>");
Session? session = await FaceSessionBuilder()
.withImageDataListener(this)
.withVitalSignsListener(this)
.withSessionInfoListener(this)
.build(licenseDetails);
} on HealthMonitorException catch(e) {
print("Received Error. Domain: ${e.domain} Code: ${e.code}");
}
Finger Measurement
Deprecation Warning
Finger measurements are deprecated and will be removed in future versions of Binah.ai's SDK.
A finger measurement is performed by covering the rear camera of a device with a finger.
Dart
try {
LicenseDetails licenseDetails = LicenseDetails("<ENTER_YOUR_LICENSE_KEY>");
Session? session = await FingerSessionBuilder()
.withImageDataListener(this)
.withVitalSignsListener(this)
.withSessionInfoListener(this)
.build(licenseDetails);
} on HealthMonitorException catch(e) {
print("Received Error. Domain: ${e.domain} Code: ${e.code}");
}
Polar Measurement
A Polar measurement is conducted by connecting to the Polar Verity Sense sensor and wearing it on the forearm, following the instructions provided in the Polar Verity Sense User Manual.
Dart
try {
LicenseDetails licenseDetails = LicenseDetails("<ENTER_YOUR_LICENSE_KEY>");
String deviceId = "<ENTER_POLAR_DEVICE_ID>"
Session? session = await PolarSessionBuilder(deviceId)
.withVitalSignsListener(this)
.withSessionInfoListener(this)
.withPPGDeviceInfoListener(this)
.build(licenseDetails);
} on HealthMonitorException catch(e) {
print("Received Error. Domain: ${e.domain} Code: ${e.code}");
}
The Polar Device ID can either be retrieved by the PPG Device Scanner or found on the Polar device as shown in the image below: