mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:26:30 +00:00
fix split tile size
rework inference events and handling todo: add Medias table and reflect recognition status there
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
using Azaion.Common.DTO;
|
||||
using Azaion.Common.Database;
|
||||
using MediatR;
|
||||
using MessagePack;
|
||||
|
||||
namespace Azaion.Common.Services.Inference;
|
||||
|
||||
public class InferenceDataEvent(RemoteCommand command) : INotification
|
||||
public class InferenceDataEvent(AnnotationImage annotationImage) : INotification
|
||||
{
|
||||
public RemoteCommand Command { get; set; } = command;
|
||||
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;
|
||||
Reference in New Issue
Block a user