18 lines
537 B
C#
18 lines
537 B
C#
namespace FaceRecognitionApp.Models;
|
|
|
|
public class Employee
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? Department { get; set; }
|
|
public byte[] FaceDescriptor { get; set; } = Array.Empty<byte>();
|
|
public byte[]? Photo { get; set; }
|
|
}
|
|
|
|
public class DetectedFace
|
|
{
|
|
public byte[] ImageData { get; set; } = Array.Empty<byte>();
|
|
public bool IsRecognized { get; set; }
|
|
public Employee? MatchedEmployee { get; set; }
|
|
public double Confidence { get; set; }
|
|
} |