From 82b277033db60bbd3c57f8e3b01767124624081f Mon Sep 17 00:00:00 2001 From: Nick Swardh Date: Sat, 7 Dec 2024 15:29:01 +0100 Subject: [PATCH] Added simple webcam demo --- WebcamDemo/App.xaml | 9 +++ WebcamDemo/App.xaml.cs | 14 ++++ WebcamDemo/AssemblyInfo.cs | 10 +++ WebcamDemo/MainWindow.xaml | 47 +++++++++++++ WebcamDemo/MainWindow.xaml.cs | 125 ++++++++++++++++++++++++++++++++++ WebcamDemo/WebcamDemo.csproj | 23 +++++++ YoloDotNet.sln | 7 ++ 7 files changed, 235 insertions(+) create mode 100644 WebcamDemo/App.xaml create mode 100644 WebcamDemo/App.xaml.cs create mode 100644 WebcamDemo/AssemblyInfo.cs create mode 100644 WebcamDemo/MainWindow.xaml create mode 100644 WebcamDemo/MainWindow.xaml.cs create mode 100644 WebcamDemo/WebcamDemo.csproj diff --git a/WebcamDemo/App.xaml b/WebcamDemo/App.xaml new file mode 100644 index 0000000..a029d96 --- /dev/null +++ b/WebcamDemo/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WebcamDemo/App.xaml.cs b/WebcamDemo/App.xaml.cs new file mode 100644 index 0000000..6a5ee7e --- /dev/null +++ b/WebcamDemo/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WebcamDemo +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/WebcamDemo/AssemblyInfo.cs b/WebcamDemo/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/WebcamDemo/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/WebcamDemo/MainWindow.xaml b/WebcamDemo/MainWindow.xaml new file mode 100644 index 0000000..18a288a --- /dev/null +++ b/WebcamDemo/MainWindow.xaml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + +