diff --git a/.gitignore b/.gitignore index 0feb5d1..46ca6dd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,7 @@ /qrCamera/cache /createqrcodes/bin /createqrcodes/obj +/cache /qr -/createqr \ No newline at end of file +/createqr +/qrcam \ No newline at end of file diff --git a/Makefile b/Makefile index 20e58de..27e7cd3 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,9 @@ clean: rm -rf createqrcodes/obj/ rm -rf createqrcodes/bin/ rm -f createqr + rm -f qrcam rm -rf qr/ run: dotnet run -p:qrCamera/CameraPreview.csproj publish: - dotnet publish qrCamera/CameraPreview.csproj --self-contained true -p:PublishSingleFile=true - mv qrCamera/bin/Release/net10.0/linux-x64/publish/CameraPreview ./qrcam \ No newline at end of file + dotnet publish qrCamera/CameraPreview.csproj --self-contained true \ No newline at end of file diff --git a/qrCamera/Program.cs b/qrCamera/Program.cs index 0f1956e..7f3cdbd 100644 --- a/qrCamera/Program.cs +++ b/qrCamera/Program.cs @@ -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> 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())) { diff --git a/qrcam b/qrcam deleted file mode 100755 index 4078931..0000000 Binary files a/qrcam and /dev/null differ