This folder contains basic code samples for the the supported languages.
To build use the -DRSID_SAMPLES cmake flag when building the library:
cmake -DRSID_SAMPLES=1 ..
Name | Language | Description | OS | Extra Cmake flag needed |
---|---|---|---|---|
Authenticate | C++ , C , C# , python | Connect to device and preform one authentication. | Windows, Linux | None |
Enroll | C++ , C , python | Connect to device and preform one enrollment for one new user. | Windows, Linux | None |
Preview | C++ , C, , python | Run preview for few seconds. Preview callback prints information on each frame.images are rgb24. gui not included | Windows, Linux | DRSID_PREVIW=1 |
Preview-Snapshot | C++ | Run preview and get snapshots cropped around the user's face. Snapshots won't be sent unless a face is detected by the device. | Windows, Linux | DRSID_PREVIEW=1 |
Multi Faces | C++ | Demonstrate how to authenticate or detect spoof on multiple faces. After authentication (spoof detection) is done, trying to match timestamps from face detection rectangles to timestamps from image. | Windows, Linux Preview timestamps - only on windows | DRSID_PREVIW=1 |
Host Mode | C++ , python | Example of using device in host mode. Preform one face extraction for enrollment and than preform one face extraction for authentication. | Windows, Linux | None |
Pair Device | C++ | Example on how to pair the device with the host. Pairing is needed to enable secure communication with the device. | Windows, Linux | DRSID_SECURE=1 |
Secure Mode Helper | C++ , C++ header | Example how to sign and verify keys exchanged with the device when using RSID_SECURE mode (ECDH protocol). In this sample we store the keys in memory and use the mbedtls library to sign/verify keys. | Windows, Linux | DRSID_SECURE=1 |