This commit is contained in:
Kq
2026-08-12 03:57:27 +02:00
parent 084aefbbd7
commit 811773062e
4 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -121,19 +121,23 @@ namespace BarcodeReaderExample
{ {
client.DownloadFile(result.Text, "cache/"+files_index + ".png"); client.DownloadFile(result.Text, "cache/"+files_index + ".png");
// Thread.Sleep(2000); // Thread.Sleep(2000);
} }
Cached[files_index] = new Mat("cache/"+files_index+ ".png"); Cached[files_index] = new Mat("cache/" + files_index + ".png");
files_index++;
} }
else else
{ {
try // try
{ // {
int toload = files.IndexOf(result.Text); int toload = files.IndexOf(result.Text);
Mat roi2 = frame[new Rect((int)pos3[0], (int)pos3[1], Cached[toload].Width, Cached[toload].Height)]; Mat roi2 = frame[new Rect((int)pos3[0], (int)pos3[1], Cached[toload].Width, Cached[toload].Height)];
Cached[toload].CopyTo(roi2); Cached[toload].CopyTo(roi2);
} // Console.WriteLine("work");
catch { } // }
// catch { }
} }
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 193 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 89 KiB

Vendored
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 100 KiB