mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-21 16:12:01 +00:00
20 lines
619 B
C#
20 lines
619 B
C#
using Avalonia;
|
|
|
|
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 PreviewData(Avalonia.Media.Imaging.Bitmap? frame, IReadOnlyList<OpenCvSharp.Rect> boxes, Rect? crop, Point2f gravitateTo)
|
|
{
|
|
Frame = frame;
|
|
DetectedBoxes = boxes;
|
|
CropRect = crop;
|
|
GravitateTo = gravitateTo;
|
|
}
|
|
|
|
} |