@@ -18,7 +18,7 @@ struct RSID_API DeviceConfig
18
18
Rotation_0_Deg = 0 , // default
19
19
Rotation_180_Deg = 1 ,
20
20
Rotation_90_Deg = 2 ,
21
- Rotation_270_Deg =3
21
+ Rotation_270_Deg = 3
22
22
};
23
23
24
24
/* *
@@ -31,7 +31,7 @@ struct RSID_API DeviceConfig
31
31
Medium = 1 , // medium security level
32
32
Low = 2 , // low security level
33
33
};
34
-
34
+
35
35
/* *
36
36
* @enum AlgoFlow
37
37
* @brief Algorithms which will be used during authentication
@@ -44,15 +44,15 @@ struct RSID_API DeviceConfig
44
44
RecognitionOnly = 3 // recognition only
45
45
};
46
46
47
-
47
+
48
48
enum class DumpMode
49
49
{
50
50
None = 0 , // default
51
51
CroppedFace = 1 , // sends snapshot of the detected face (as jpg)
52
52
FullFrame = 2 , // sends left+right raw frames with metadata
53
53
};
54
54
55
-
55
+
56
56
/* *
57
57
* @brief Defines three confidence levels used by the Matcher during authentication.
58
58
*
@@ -62,8 +62,8 @@ struct RSID_API DeviceConfig
62
62
*/
63
63
enum class MatcherConfidenceLevel
64
64
{
65
- High = 0 ,
66
- Medium = 1 ,
65
+ High = 0 ,
66
+ Medium = 1 ,
67
67
Low = 2 // default
68
68
};
69
69
@@ -73,16 +73,27 @@ struct RSID_API DeviceConfig
73
73
DumpMode dump_mode = DumpMode::None;
74
74
MatcherConfidenceLevel matcher_confidence_level = MatcherConfidenceLevel::Low;
75
75
76
-
77
- /* *
76
+
77
+ /* *
78
78
* @brief Specifies the maximum number of consecutive spoofing attempts allowed before the device rejects further
79
79
* authentication requests.
80
80
*
81
81
* Setting this value to 0 disables the check, which is the default behavior. If the number of consecutive spoofing
82
82
* attempts reaches max_spoofs, the device will reject any subsequent authentication requests. To reset this
83
83
* behavior and allow further authentication attempts, the device must be unlocked using the Unlock() API call.
84
84
*/
85
- unsigned char max_spoofs = 0 ;
85
+ unsigned char max_spoofs = 0 ;
86
+
87
+
88
+ /* *
89
+ * @brief Controls whether GPIO toggling is enabled(1) or disabled(0, default) after successful authentication.
90
+ *
91
+ * Set this value to 1 to enable toggling of GPIO pin #1 after each successful authentication.
92
+ * Set this value to 0 to disable GPIO toggling (default).
93
+ *
94
+ * @note Only GPIO pin #1 can be toggled. Other values are not supported.
95
+ */
96
+ int gpio_auth_toggling = 0 ;
86
97
};
87
98
88
99
RSID_API const char * Description (DeviceConfig::CameraRotation rotation);
0 commit comments