Appearance
Measurement Modes
The SDK supports two measurements modes - face measurements and finger 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}");
}