check point

This commit is contained in:
meelstorm
2025-07-14 12:03:59 +02:00
commit d3cb790bd9
431 changed files with 44078 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using CommunityToolkit.Mvvm.ComponentModel;
using OpenCvSharp;
using VisionBuilder.UI.Common.Commands;
using VisionBuilder.UI.Common.Commands.Interfaces;
namespace VisionBuilder.UI.Common.ViewModel;
public partial class PreviewVM:ObservableObject, IEventHandler<ImageProcessedEvent>
{
[ObservableProperty] private Mat _imagePreview;
[ObservableProperty] private bool _isError;
public void Handle(ImageProcessedEvent @event)
{
IsError = @event.HasError;
ImagePreview = @event.ImageAnalysis.Clone();
}
}