diff --git a/Program.cs b/Program.cs index 9e1f450..d618b00 100644 --- a/Program.cs +++ b/Program.cs @@ -121,19 +121,23 @@ namespace BarcodeReaderExample { client.DownloadFile(result.Text, "cache/"+files_index + ".png"); // Thread.Sleep(2000); + } - Cached[files_index] = new Mat("cache/"+files_index+ ".png"); + Cached[files_index] = new Mat("cache/" + files_index + ".png"); + files_index++; } 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)]; Cached[toload].CopyTo(roi2); - } - catch { } + // Console.WriteLine("work"); + // } + // catch { } } diff --git a/assets/gay.png b/assets/gay.png index f813d76..f9f164c 100644 Binary files a/assets/gay.png and b/assets/gay.png differ diff --git a/assets/pea.png b/assets/pea.png index 49125cb..e292e60 100644 Binary files a/assets/pea.png and b/assets/pea.png differ diff --git a/cache/0.png b/cache/0.png index 13139e1..cbe326c 100644 Binary files a/cache/0.png and b/cache/0.png differ