mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-20 07:40:57 +08:00
feat(face-recognition): add face detection support and UI overlay
This commit is contained in:
11
Models/Response/Picture/FaceResponse.cs
Normal file
11
Models/Response/Picture/FaceResponse.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Foxel.Models.Response.Picture;
|
||||
|
||||
public record FaceResponse
|
||||
{
|
||||
public int X { get; set; }
|
||||
public int Y { get; set; }
|
||||
public int W { get; set; }
|
||||
public int H { get; set; }
|
||||
public double FaceConfidence { get; set; }
|
||||
public string? PersonName { get; set; }
|
||||
}
|
||||
@@ -27,5 +27,5 @@ public record PictureResponse
|
||||
public string? AlbumName { get; set; }
|
||||
public PermissionType Permission { get; set; } = PermissionType.Public;
|
||||
public string? StorageModeName { get; set; }
|
||||
|
||||
public List<FaceResponse>? Faces { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user