mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-21 16:12:01 +00:00
22 lines
832 B
C#
22 lines
832 B
C#
namespace Splitter_UI.Models;
|
|
|
|
public class PreviewData
|
|
{
|
|
public Avalonia.Media.Imaging.Bitmap? Frame { get; }
|
|
public IReadOnlyList<OpenCvSharp.Rect> DetectedBoxes { get; }
|
|
public Rect? CropRect { get; }
|
|
public Point2f GravitateTo { get; }
|
|
public TimeSpan Position { get; }
|
|
public int? Rotate { get; }
|
|
|
|
public PreviewData(Avalonia.Media.Imaging.Bitmap? frame, IReadOnlyList<OpenCvSharp.Rect> boxes, Rect? crop, Point2f gravitateTo, TimeSpan position, int? rotate)
|
|
{
|
|
Frame = frame;
|
|
DetectedBoxes = boxes;
|
|
CropRect = crop;
|
|
GravitateTo = gravitateTo;
|
|
Position = position;
|
|
Rotate = rotate;
|
|
}
|
|
|
|
} |