-
Notifications
You must be signed in to change notification settings - Fork 1
/
IFaceSdk.cs
36 lines (32 loc) · 892 Bytes
/
IFaceSdk.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace FaceSample
{
public interface IFaceSdk
{
void MatchFaces(byte[] firstStream, byte[] secondStream);
void StartLiveness();
void FaceCaptureImage();
event EventHandler<IMatchFacesEvent> MatchFacesResultsObtained;
event EventHandler<ILivenessEvent> LivenessResultsObtained;
event EventHandler<IFaceCaptureImageEvent> FaceCaptureResultsObtained;
}
public interface IMatchFacesEvent
{
bool IsSuccess { get; set; }
string Error { get; set; }
double Similarity { get; set; }
}
public interface ILivenessEvent
{
LivenessStatus LivenessStatus { get; set; }
byte[] LivenessImage { get; set; }
}
public interface IFaceCaptureImageEvent
{
byte[] Image { get; set; }
}
public enum LivenessStatus
{
PASSED,
UNKNOWN
}
}