Skip to content

Commit 3fc7c3a

Browse files
authored
V0.42.0 (#173)
* version 0.42.0 * release notes
1 parent 66f473f commit 3fc7c3a

File tree

124 files changed

+2071
-1875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+2071
-1875
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BinPackParameters: true
2525
BreakAfterJavaFieldAnnotations: true
2626
BreakConstructorInitializers: AfterColon
2727
BreakInheritanceList: AfterColon
28-
ColumnLimit: 120
28+
ColumnLimit: 140
2929
CompactNamespaces: true
3030
DerivePointerAlignment: false
3131
DisableFormat: false

include/RealSenseID/AuthFaceprintsExtractionCallback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AuthFaceprintsExtractionCallback
2323
* Called to inform the client on the result of faceprints extraction, and pass the faceprints in case of success
2424
*
2525
* @param[in] status Final authentication status.
26-
* @param[in] faceprints Pointer to the requested faceprints which were just extracted from the device.
26+
* @param[in] faceprints Pointer to the requested faceprints which were just extracted from the device.
2727
*/
2828
virtual void OnResult(const AuthenticateStatus status, const ExtractedFaceprints* faceprints) = 0;
2929

include/RealSenseID/AuthenticateStatus.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ enum class RSID_API AuthenticateStatus
2424
FaceTiltIsTooDown,
2525
FaceTiltIsTooRight,
2626
FaceTiltIsTooLeft,
27+
FaceIsNotFrontal,
2728
CameraStarted,
2829
CameraStopped,
2930
MaskDetectedInHighSecurity,
@@ -35,7 +36,7 @@ enum class RSID_API AuthenticateStatus
3536
InvalidFeatures,
3637
AmbiguiousFace,
3738
/// Accessories
38-
Sunglasses = 50,
39+
Sunglasses = 50,
3940
/// serial statuses
4041
Ok = 100,
4142
Error,
@@ -51,7 +52,7 @@ enum class RSID_API AuthenticateStatus
5152
Spoof_LR,
5253
Spoof_Disparity,
5354
Spoof_Surface,
54-
Spoof_Plane_Disparity,
55+
Spoof_Plane_Disparity,
5556
Spoof_2D_Right,
5657
/* Note: Should not exceed 127 - to be a legal ascii*/
5758
};

include/RealSenseID/AuthenticationCallback.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include "AuthenticateStatus.h"
77
#include "FaceRect.h"
8-
#include<vector>
8+
#include <vector>
99

1010
namespace RealSenseID
1111
{
@@ -42,7 +42,7 @@ class RSID_API AuthenticationCallback
4242
*/
4343
virtual void OnFaceDetected(const std::vector<FaceRect>& /* faces */, const unsigned int /* ts */)
4444
{
45-
//default empty impl for backward compatibilty
45+
// default empty impl for backward compatibilty
4646
}
4747
};
4848
} // namespace RealSenseID

include/RealSenseID/DeviceConfig.h

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct RSID_API DeviceConfig
1818
Rotation_0_Deg = 0, // default
1919
Rotation_180_Deg = 1,
2020
Rotation_90_Deg = 2,
21-
Rotation_270_Deg =3
21+
Rotation_270_Deg = 3
2222
};
2323

2424
/**
@@ -31,7 +31,7 @@ struct RSID_API DeviceConfig
3131
Medium = 1, // medium security level
3232
Low = 2, // low security level
3333
};
34-
34+
3535
/**
3636
* @enum AlgoFlow
3737
* @brief Algorithms which will be used during authentication
@@ -44,15 +44,15 @@ struct RSID_API DeviceConfig
4444
RecognitionOnly = 3 // recognition only
4545
};
4646

47-
47+
4848
enum class DumpMode
4949
{
5050
None = 0, // default
5151
CroppedFace = 1, // sends snapshot of the detected face (as jpg)
5252
FullFrame = 2, // sends left+right raw frames with metadata
5353
};
5454

55-
55+
5656
/**
5757
* @brief Defines three confidence levels used by the Matcher during authentication.
5858
*
@@ -62,8 +62,8 @@ struct RSID_API DeviceConfig
6262
*/
6363
enum class MatcherConfidenceLevel
6464
{
65-
High = 0,
66-
Medium = 1,
65+
High = 0,
66+
Medium = 1,
6767
Low = 2 // default
6868
};
6969

@@ -73,16 +73,27 @@ struct RSID_API DeviceConfig
7373
DumpMode dump_mode = DumpMode::None;
7474
MatcherConfidenceLevel matcher_confidence_level = MatcherConfidenceLevel::Low;
7575

76-
77-
/**
76+
77+
/**
7878
* @brief Specifies the maximum number of consecutive spoofing attempts allowed before the device rejects further
7979
* authentication requests.
8080
*
8181
* Setting this value to 0 disables the check, which is the default behavior. If the number of consecutive spoofing
8282
* attempts reaches max_spoofs, the device will reject any subsequent authentication requests. To reset this
8383
* behavior and allow further authentication attempts, the device must be unlocked using the Unlock() API call.
8484
*/
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;
8697
};
8798

8899
RSID_API const char* Description(DeviceConfig::CameraRotation rotation);

include/RealSenseID/DeviceController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ class RSID_API DeviceController
8383
* seconds to complete.
8484
*/
8585
Status FetchLog(std::string& log);
86-
86+
8787
/**
8888
* Get color gains packet from device and fill the red, blue values
8989
* @return SerialStatus::Success on success.
9090
*/
91-
Status GetColorGains(int &red, int &blue);
91+
Status GetColorGains(int& red, int& blue);
9292

9393
/**
9494
* Send color gains packet to device. Valid range: 0-511

include/RealSenseID/DiscoverDevices.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ struct RSID_API DeviceInfo
1515
static constexpr std::size_t MaxBufferSize = 256;
1616

1717
char serialPort[MaxBufferSize];
18-
1918
};
2019

2120
std::vector<DeviceInfo> RSID_API DiscoverDevices();

include/RealSenseID/EnrollFaceprintsExtractionCallback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <vector>
1010
#include "Faceprints.h"
1111

12-
//
12+
//
1313
namespace RealSenseID
1414
{
1515
/**

include/RealSenseID/EnrollStatus.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ enum class RSID_API EnrollStatus
2727
FaceIsNotFrontal,
2828
CameraStarted,
2929
CameraStopped,
30-
MultipleFacesDetected,
30+
MultipleFacesDetected,
3131
Failure,
3232
DeviceError,
33-
EnrollWithMaskIsForbidden, // for mask-detector : we'll forbid enroll if used wears mask.
33+
EnrollWithMaskIsForbidden, // for mask-detector : we'll forbid enroll if used wears mask.
3434
Spoof,
3535
InvalidFeatures,
3636
AmbiguiousFace,

include/RealSenseID/EnrollmentCallback.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ class RSID_API EnrollmentCallback
4040
*/
4141
virtual void OnHint(const EnrollStatus hint) = 0;
4242

43-
/**
43+
/**
4444
* Called to inform the client about detected faces during the authentication operation.
4545
*
4646
* @param[in] face Detected faces. First item is the selected one for the authentication operation.
4747
*/
48-
virtual void OnFaceDetected(const std::vector<FaceRect> &/*faces*/, const unsigned int /*ts*/)
48+
virtual void OnFaceDetected(const std::vector<FaceRect>& /*faces*/, const unsigned int /*ts*/)
4949
{
50-
//default empty impl for backward compatibilty
50+
// default empty impl for backward compatibilty
5151
}
5252
};
5353
} // namespace RealSenseID

0 commit comments

Comments
 (0)