mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:46:30 +00:00
fde9a9f418
also restrict detections to be no bigger than in classes.json
22 lines
516 B
C#
22 lines
516 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; |