mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:16:30 +00:00
9a16099194
rework inference events and handling todo: add Medias table and reflect recognition status there
22 lines
515 B
C#
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; |