Files
annotations/Azaion.Common/Services/Inference/InferenceServiceEvents.cs
T
Oleksandr Bezdieniezhnykh 9a16099194 fix split tile size
rework inference events and handling
todo: add Medias table and reflect recognition status there
2025-09-05 16:50:09 +03:00

22 lines
515 B
C#

using Azaion.Common.Database;
using MediatR;
using MessagePack;
namespace Azaion.Common.Services.Inference;
public class InferenceDataEvent(AnnotationImage annotationImage) : INotification
{
public AnnotationImage AnnotationImage { get; set; } = annotationImage;
}
[MessagePackObject]
public class InferenceStatusEvent : INotification
{
[Key("mn")]
public string MediaName { get; set; }
[Key("dc")]
public int DetectionsCount { get; set; }
}
public class InferenceDoneEvent : INotification;