mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 02:20:28 +08:00
25 lines
610 B
C#
25 lines
610 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Foxel.Models.DataBase;
|
|
|
|
public class Face : BaseModel
|
|
{
|
|
public float[]? Embedding { get; set; }
|
|
|
|
public int X { get; set; }
|
|
public int Y { get; set; }
|
|
public int W { get; set; }
|
|
public int H { get; set; }
|
|
|
|
[Range(0.0, 1.0)]
|
|
public double FaceConfidence { get; set; }
|
|
|
|
public int PictureId { get; set; }
|
|
|
|
[StringLength(255)]
|
|
public string? PersonName { get; set; }
|
|
[ForeignKey("PictureId")]
|
|
public Picture Picture { get; set; } = null!;
|
|
}
|