This commit is contained in:
Kq
2026-08-12 19:31:18 +02:00
parent a884b974cc
commit 66ba176204
4 changed files with 9 additions and 6 deletions
+4 -3
View File
@@ -27,6 +27,7 @@ namespace BarcodeReaderExample
camera.Set(VideoCaptureProperties.FrameWidth, 1280);
camera.Set(VideoCaptureProperties.FrameHeight, 720);
int fps = 60;
int avalibeImages = 20;
camera.Set(VideoCaptureProperties.Fps, fps);
if (Directory.Exists("cache"))
{
@@ -35,7 +36,7 @@ namespace BarcodeReaderExample
Directory.CreateDirectory("cache");
Mat hey = new Mat("photo.png");
Mat[] Cached = new Mat[10];
Mat[] Cached = new Mat[avalibeImages];
int imgX = 0;
@@ -56,7 +57,7 @@ namespace BarcodeReaderExample
IEnumerable<IEnumerable<OpenCvSharp.Point>> contours = null;
// PointF[] location;
string[] files = new string[20];
string[] files = new string[avalibeImages];
int files_index = 0;
while (true)
{
@@ -65,7 +66,7 @@ namespace BarcodeReaderExample
camera.Read(frame);
Result result = ReadQrCode(frame);
Console.WriteLine(Lastimage.Empty());
// Console.WriteLine(Lastimage.Empty());
if (!(Lastimage.Empty()))
{