feat: add EmployeeFaceEmbedding model and related metadata classes

This commit is contained in:
2025-11-03 20:06:28 +03:30
parent 73da938bc9
commit 752c7c72ab

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
namespace Company.Domain.EmployeeFaceEmbeddingAgg;
public class EmployeeFaceEmbedding
{
public string Id { get; set; }
public string EmployeeFullName { get; set; }
public int EmployeeId { get; set; }
public int WorkshopId { get; set; }
public List<double> Embeddings { get; set; }
public EmployeeFaceEmbeddingMetadata Metadata { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
public class EmployeeFaceEmbeddingMetadata
{
public double AvgEyeDistanceNormalized { get; set; }
public double AvgEyeToFaceRatio { get; set; }
public double AvgFaceAspectRatio { get; set; }
public double AvgDetectionConfidence { get; set; }
public EmployeeFaceEmbeddingKeypoints AvgKeypointsNormalized { get; set; }
public List<ImageMetadata> PerImageMetadata { get; set; }
}
public class EmployeeFaceEmbeddingKeypoints
{
public double[] LeftEye { get; set; }
public double[] RightEye { get; set; }
public double[] Nose { get; set; }
public double[] MouthLeft { get; set; }
public double[] MouthRight { get; set; }
}
public class ImageMetadata
{
public double FaceAspectRatio { get; set; }
public double EyeDistanceNormalized { get; set; }
public double EyeToFaceRatio { get; set; }
public EmployeeFaceEmbeddingKeypoints KeypointsNormalized { get; set; }
public double DetectionConfidence { get; set; }
}