commit 70bb7b1f745910223d57c06a84bf499b43ebc863 Author: maxluli Date: Sat Oct 15 10:10:12 2022 +0200 Initial proof of concept diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4507fc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,402 @@ +# Created by https://www.toptal.com/developers/gitignore/api/csharp +# Edit at https://www.toptal.com/developers/gitignore?templates=csharp + +### Csharp ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +# End of https://www.toptal.com/developers/gitignore/api/csharp \ No newline at end of file diff --git a/TestVideo.sln b/TestVideo.sln new file mode 100644 index 0000000..156b336 --- /dev/null +++ b/TestVideo.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32526.322 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestVideo", "TestVideo\TestVideo.csproj", "{76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Debug|Any CPU.Build.0 = Debug|Any CPU + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Debug|x64.ActiveCfg = Debug|x64 + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Debug|x64.Build.0 = Debug|x64 + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Release|Any CPU.ActiveCfg = Release|Any CPU + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Release|Any CPU.Build.0 = Release|Any CPU + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Release|x64.ActiveCfg = Release|x64 + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2673166B-B630-442A-8F4A-37AE0CD17636} + EndGlobalSection +EndGlobal diff --git a/TestVideo/App.config b/TestVideo/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/TestVideo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TestVideo/Form1.Designer.cs b/TestVideo/Form1.Designer.cs new file mode 100644 index 0000000..2104901 --- /dev/null +++ b/TestVideo/Form1.Designer.cs @@ -0,0 +1,123 @@ +namespace TestVideo +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.pbxInput = new System.Windows.Forms.PictureBox(); + this.pbxOutput = new System.Windows.Forms.PictureBox(); + this.btnStart = new System.Windows.Forms.Button(); + this.tmrScreenshots = new System.Windows.Forms.Timer(this.components); + this.lsbScreens = new System.Windows.Forms.ListBox(); + this.tbxResult = new System.Windows.Forms.TextBox(); + ((System.ComponentModel.ISupportInitialize)(this.pbxInput)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbxOutput)).BeginInit(); + this.SuspendLayout(); + // + // pbxInput + // + this.pbxInput.Location = new System.Drawing.Point(12, 12); + this.pbxInput.Name = "pbxInput"; + this.pbxInput.Size = new System.Drawing.Size(480, 270); + this.pbxInput.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pbxInput.TabIndex = 0; + this.pbxInput.TabStop = false; + // + // pbxOutput + // + this.pbxOutput.Location = new System.Drawing.Point(12, 288); + this.pbxOutput.Name = "pbxOutput"; + this.pbxOutput.Size = new System.Drawing.Size(480, 270); + this.pbxOutput.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pbxOutput.TabIndex = 1; + this.pbxOutput.TabStop = false; + // + // btnStart + // + this.btnStart.Location = new System.Drawing.Point(495, 245); + this.btnStart.Name = "btnStart"; + this.btnStart.Size = new System.Drawing.Size(157, 37); + this.btnStart.TabIndex = 2; + this.btnStart.Text = "Start"; + this.btnStart.UseVisualStyleBackColor = true; + this.btnStart.Click += new System.EventHandler(this.btnStart_Click); + // + // tmrScreenshots + // + this.tmrScreenshots.Interval = 5000; + this.tmrScreenshots.Tick += new System.EventHandler(this.tmrScreenshots_Tick); + // + // lsbScreens + // + this.lsbScreens.FormattingEnabled = true; + this.lsbScreens.ItemHeight = 16; + this.lsbScreens.Location = new System.Drawing.Point(498, 12); + this.lsbScreens.Name = "lsbScreens"; + this.lsbScreens.Size = new System.Drawing.Size(154, 228); + this.lsbScreens.TabIndex = 3; + this.lsbScreens.SelectedIndexChanged += new System.EventHandler(this.lsbScreens_SelectedIndexChanged); + // + // tbxResult + // + this.tbxResult.Location = new System.Drawing.Point(498, 288); + this.tbxResult.Multiline = true; + this.tbxResult.Name = "tbxResult"; + this.tbxResult.Size = new System.Drawing.Size(147, 270); + this.tbxResult.TabIndex = 4; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(657, 565); + this.Controls.Add(this.tbxResult); + this.Controls.Add(this.lsbScreens); + this.Controls.Add(this.btnStart); + this.Controls.Add(this.pbxOutput); + this.Controls.Add(this.pbxInput); + this.Enabled = false; + this.Name = "Form1"; + this.Text = "Form1"; + ((System.ComponentModel.ISupportInitialize)(this.pbxInput)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbxOutput)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pbxInput; + private System.Windows.Forms.PictureBox pbxOutput; + private System.Windows.Forms.Button btnStart; + private System.Windows.Forms.Timer tmrScreenshots; + private System.Windows.Forms.ListBox lsbScreens; + private System.Windows.Forms.TextBox tbxResult; + } +} + diff --git a/TestVideo/Form1.cs b/TestVideo/Form1.cs new file mode 100644 index 0000000..ea2b7c6 --- /dev/null +++ b/TestVideo/Form1.cs @@ -0,0 +1,177 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Drawing.Imaging; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Emgu.CV; +using Emgu.CV.OCR; +using Emgu.CV.Structure; +using System.IO; + +namespace TestVideo +{ + public partial class Form1 : Form + { + public Screen[] screens; + Screen currentScreen; + List screenNames; + + Image displayedImage = null; + public Form1() + { + InitializeComponent(); + screens = Screen.AllScreens; + currentScreen = screens[0]; + screenNames = new List(); + foreach (Screen scr in screens) + { + screenNames.Add(scr.DeviceName); + } + lsbScreens.DataSource = screenNames; + + //TESTING TESSERACT + + string path = AppDomain.CurrentDomain.BaseDirectory + "Screens\\Baneer.png"; + + tbxResult.Text = DecodeTessereactResults(testTesseract(path), Image.FromFile(path), pbxOutput); + //MessageBox.Show(DecodeTessereactResults(testTesseract(path), Image.FromFile(path), pbxOutput)); + } + private Bitmap PrepareImage(Bitmap inputImage) + { + using (Graphics g = Graphics.FromImage(inputImage)) + { + for (int y = 0; y < inputImage.Height;y++) + { + for (int x = 0; x < inputImage.Width;x++) + { + //We will apply a filter to put the image first in grayScale + //Then if the pixel is more white than black it will be fully white and same for black + + //Grayscale = 0.299R + 0.587G + 0.114B + Color color = inputImage.GetPixel(x,y); + int grayScaleValue = Convert.ToInt32(0.299 * (float)color.R + 0.587 * (float)color.G + 0.114 * (float)color.B); + int finalValue = 0; + if (grayScaleValue > 255 / 2) + finalValue = 255; + + inputImage.SetPixel(x,y,Color.FromArgb(finalValue,finalValue,finalValue)); + } + } + } + + return inputImage; + } + private string DecodeTessereactResults(string tesseractResult, Image inputImage, PictureBox resultPbx) + { + string result = ""; + string[] lettersData = tesseractResult.Split('\n'); + using (Graphics g = Graphics.FromImage(inputImage)) + { + foreach (string letterData in lettersData) + { + string[] data = letterData.Split(' '); + //This data is in a format that we cant process + if (data.Length != 6) + break; + + string letter = data[0]; + Point position = new Point(Convert.ToInt32(data[1]), Convert.ToInt32(data[2])); + Size size = new Size(Convert.ToInt32(data[3]), Convert.ToInt32(data[4])); + int unknownData = Convert.ToInt32(data[5]); + + //Use the data + result += letter; + g.DrawRectangle(new Pen(Brushes.Red,5),new Rectangle(position,size)); + } + } + + resultPbx.Image = inputImage; + + return result; + } + private void btnStart_Click(object sender, EventArgs e) + { + if (tmrScreenshots.Enabled) + { + tmrScreenshots.Enabled = false; + btnStart.Text = "Start"; + } + else + { + tmrScreenshots.Enabled = true; + btnStart.Text = "Stop"; + } + } + private Bitmap ScreenShot() + { + Bitmap screenshot; + screenshot = new Bitmap(currentScreen.Bounds.Width, currentScreen.Bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); + // Create a graphics object from the bitmap + Graphics gfxScreenshot = Graphics.FromImage(screenshot); + // Take the screenshot from the upper left corner to the right bottom corner + gfxScreenshot.CopyFromScreen( + currentScreen.Bounds.X, + currentScreen.Bounds.Y, + 0, + 0, + currentScreen.Bounds.Size, + CopyPixelOperation.SourceCopy); + //testTesseract(screenshot); + + //SaveScreenshot(screenshot); + MessageBox.Show(testTesseract(SaveScreenshot(screenshot))); + return screenshot; + } + private string SaveScreenshot(Bitmap image) + { + string path = ""; + string directory = AppDomain.CurrentDomain.BaseDirectory + "Screens"; + path = directory + "\\Screenshot" + DateTime.Now.ToString("yyyy_MM_dd-hh_mm_ss") + ".png"; + if (Directory.Exists(directory)) + { + image.Save(path, ImageFormat.Png); + } + else + { + Directory.CreateDirectory(AppDomain.CurrentDomain.BaseDirectory + "\\Screens"); + } + return path; + } + //http://leonwoo-tech.blogspot.com/2018/06/tip-how-to-properly-setup-opencv-ocr-to.html + private string testTesseract(string filePath) + { + string result = ""; + using (var image = new Image(filePath)) + { + using (Tesseract tesseractOcrProvider = new Tesseract(AppDomain.CurrentDomain.BaseDirectory + "\\Data", "eng", OcrEngineMode.Default)) + { + tesseractOcrProvider.SetImage(image); + tesseractOcrProvider.Recognize(); + result = tesseractOcrProvider.GetBoxText().TrimEnd(); + } + } + // File.Delete(filePath); + return result; + } + + private void tmrScreenshots_Tick(object sender, EventArgs e) + { + //pbxInput.Image.Dispose(); + Image img = ScreenShot(); + pbxInput.Image = img; + GC.Collect(); + //img.Dispose(); + } + + private void lsbScreens_SelectedIndexChanged(object sender, EventArgs e) + { + currentScreen = screens[lsbScreens.SelectedIndex]; + } + + } +} diff --git a/TestVideo/Form1.resx b/TestVideo/Form1.resx new file mode 100644 index 0000000..c5d5a46 --- /dev/null +++ b/TestVideo/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/TestVideo/Program.cs b/TestVideo/Program.cs new file mode 100644 index 0000000..1511d35 --- /dev/null +++ b/TestVideo/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TestVideo +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/TestVideo/Properties/AssemblyInfo.cs b/TestVideo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c651510 --- /dev/null +++ b/TestVideo/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TestVideo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TestVideo")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("76bf32a0-3eed-4d4a-82ca-6fa3126c4a39")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TestVideo/Properties/Resources.Designer.cs b/TestVideo/Properties/Resources.Designer.cs new file mode 100644 index 0000000..6350e58 --- /dev/null +++ b/TestVideo/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace TestVideo.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TestVideo.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/TestVideo/Properties/Resources.resx b/TestVideo/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/TestVideo/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TestVideo/Properties/Settings.Designer.cs b/TestVideo/Properties/Settings.Designer.cs new file mode 100644 index 0000000..12359a7 --- /dev/null +++ b/TestVideo/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace TestVideo.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/TestVideo/Properties/Settings.settings b/TestVideo/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/TestVideo/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TestVideo/TestVideo.csproj b/TestVideo/TestVideo.csproj new file mode 100644 index 0000000..209b213 --- /dev/null +++ b/TestVideo/TestVideo.csproj @@ -0,0 +1,112 @@ + + + + + Debug + AnyCPU + {76BF32A0-3EED-4D4A-82CA-6FA3126C4A39} + WinExe + TestVideo + TestVideo + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + true + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + true + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + 4.5.5.4823 + + + 4.5.5.4823 + + + + \ No newline at end of file