Skip to content

Commit b27ef16

Browse files
authored
Update readme (#170)
1 parent acea384 commit b27ef16

File tree

1 file changed

+43
-15
lines changed

1 file changed

+43
-15
lines changed

Readme.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -352,49 +352,77 @@ struct RSID_API DeviceConfig
352352
{
353353
Rotation_0_Deg = 0, // default
354354
Rotation_180_Deg = 1,
355-
Rotation_90_deg = 2,
356-
Rotation_270_deg = 3
355+
Rotation_90_Deg = 2,
356+
Rotation_270_Deg =3
357357
};
358358

359359
/**
360360
* @enum SecurityLevel
361-
* @brief SecurityLevel to allow
361+
* @brief SecurityLevel to allow. (default is Low)
362362
*/
363363
enum class SecurityLevel
364364
{
365-
High = 0, // high security, no mask support, all AS algo(s) will be activated
366-
Medium = 1, // default mode to support masks, only main AS algo will be activated.
365+
High = 0, // high security level
366+
Medium = 1, // medium security level
367+
Low = 2, // low security level
367368
};
368-
369+
369370
/**
370371
* @enum AlgoFlow
371372
* @brief Algorithms which will be used during authentication
372373
*/
373374
enum class AlgoFlow
374375
{
375-
All = 0, // default
376-
FaceDetectionOnly = 1, // face detection only
376+
All = 0, // spoof and face detection
377+
FaceDetectionOnly = 1, // face detection only (default)
377378
SpoofOnly = 2, // spoof only
378379
RecognitionOnly = 3 // recognition only
379380
};
381+
380382

381383
enum class DumpMode
382384
{
383-
None = 0,
384-
CroppedFace = 1,
385-
FullFrame = 2,
385+
None = 0, // default
386+
CroppedFace = 1, // sends snapshot of the detected face (as jpg)
387+
FullFrame = 2, // sends left+right raw frames with metadata
388+
};
389+
390+
391+
/**
392+
* @brief Defines three confidence levels used by the Matcher during authentication.
393+
*
394+
* Each confidence level corresponds to a different set of thresholds, providing the user with the flexibility to
395+
* choose between three different False Positive Rates (FPR): Low, Medium, and High. Currently, all sets use the
396+
* thresholds associated with the "Low" confidence level by default.
397+
*/
398+
enum class MatcherConfidenceLevel
399+
{
400+
High = 0,
401+
Medium = 1,
402+
Low = 2 // default
386403
};
387404

388405
CameraRotation camera_rotation = CameraRotation::Rotation_0_Deg;
389-
SecurityLevel security_level = SecurityLevel::Medium;
390-
AlgoFlow algo_flow = AlgoFlow::All;
406+
SecurityLevel security_level = SecurityLevel::Low;
407+
AlgoFlow algo_flow = AlgoFlow::FaceDetectionOnly;
391408
DumpMode dump_mode = DumpMode::None;
409+
MatcherConfidenceLevel matcher_confidence_level = MatcherConfidenceLevel::Low;
410+
411+
412+
/**
413+
* @brief Specifies the maximum number of consecutive spoofing attempts allowed before the device rejects further
414+
* authentication requests.
415+
*
416+
* Setting this value to 0 disables the check, which is the default behavior. If the number of consecutive spoofing
417+
* attempts reaches max_spoofs, the device will reject any subsequent authentication requests. To reset this
418+
* behavior and allow further authentication attempts, the device must be unlocked using the Unlock() API call.
419+
*/
420+
unsigned char max_spoofs = 0;
392421
};
393422
```
394423

395424
Notes:
396-
* If ```SetDeviceConfig()``` never called, the device will use the default values described above.
397-
* ```SetDeviceConfig()``` can be called once. The settings will take effect for all future authentication sessions (until the device is restarted).
425+
* If ```SetDeviceConfig()``` never called, the device will use the default values described above.
398426
* ```CameraRotation``` enable the algorithm to work with a rotated device. For preview rotation to match, you'll need to define previewConfig.portraitMode accordingly (see Preview section).
399427

400428
The following example configures the device to only detect spoofs (instead of the default full authentication):

0 commit comments

Comments
 (0)