diff --git a/TestVideo/Form1.Designer.cs b/TestVideo/Form1.Designer.cs index 600f646..5f9e7f6 100644 --- a/TestVideo/Form1.Designer.cs +++ b/TestVideo/Form1.Designer.cs @@ -79,7 +79,7 @@ // // tmrScreenshots // - this.tmrScreenshots.Interval = 5000; + this.tmrScreenshots.Interval = 1000; this.tmrScreenshots.Tick += new System.EventHandler(this.tmrScreenshots_Tick); // // lsbScreens diff --git a/TestVideo/Form1.cs b/TestVideo/Form1.cs index 1b25412..f5e3464 100644 --- a/TestVideo/Form1.cs +++ b/TestVideo/Form1.cs @@ -78,7 +78,10 @@ namespace TestVideo extraction.UpdateZones(); pbxInput.Image = extraction.ScreenPreview; if(currentZoneIndex != -1) + { tbxResult.Text = extraction.GetZoneRawText(currentZoneIndex); + pbxOutput.Image = extraction.GetZoneData(currentZoneIndex); + } //This is to prevent Ram from exploding GC.Collect(); } diff --git a/TestVideo/Zone.cs b/TestVideo/Zone.cs index 7796571..936f882 100644 --- a/TestVideo/Zone.cs +++ b/TestVideo/Zone.cs @@ -83,6 +83,7 @@ namespace TestVideo string result = ""; //To use this toImage you need : NuGet\Install-Package Emgu.CV.Bitmap -Version 4.5.5.4823 inputBmp = PrepareImage(inputBmp); + ZoneData = inputBmp; Image emguImage = inputBmp.ToImage(); using (var image = emguImage)