Now you can see the preview of what the zone can see
This commit is contained in:
Generated
+1
-1
@@ -79,7 +79,7 @@
|
||||
//
|
||||
// tmrScreenshots
|
||||
//
|
||||
this.tmrScreenshots.Interval = 5000;
|
||||
this.tmrScreenshots.Interval = 1000;
|
||||
this.tmrScreenshots.Tick += new System.EventHandler(this.tmrScreenshots_Tick);
|
||||
//
|
||||
// lsbScreens
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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<Bgr, byte> emguImage = inputBmp.ToImage<Bgr, byte>();
|
||||
|
||||
using (var image = emguImage)
|
||||
|
||||
Reference in New Issue
Block a user