mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-23 00:52:01 +00:00
17 lines
596 B
C#
17 lines
596 B
C#
namespace splitter.algo;
|
|
|
|
public interface IFrameProcessingState
|
|
{
|
|
}
|
|
|
|
public sealed record FrameProcessingResult(Mat? Image, List<DetectedPerson> Detected, DetectedPerson? Primary);
|
|
|
|
public interface ISegmentProcessor
|
|
{
|
|
IFrameProcessingState InitSegment(SingleTask job, CancellationToken token);
|
|
FrameProcessingResult GetNextProcessedFrame(IFrameProcessingState processorState, CancellationToken token);
|
|
void FinishSegment(IFrameProcessingState processorState);
|
|
|
|
Task ProcessSegment( SingleTask job, Action<FrameProcessingResult>? onFrameProcessed, CancellationToken token);
|
|
}
|