Compare commits
2
Commits
4059a3b67b
...
66ba176204
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66ba176204 | ||
|
|
a884b974cc |
@@ -3,5 +3,7 @@
|
|||||||
/qrCamera/cache
|
/qrCamera/cache
|
||||||
/createqrcodes/bin
|
/createqrcodes/bin
|
||||||
/createqrcodes/obj
|
/createqrcodes/obj
|
||||||
|
/cache
|
||||||
/qr
|
/qr
|
||||||
/createqr
|
/createqr
|
||||||
|
/qrcam
|
||||||
@@ -8,6 +8,9 @@ clean:
|
|||||||
rm -rf createqrcodes/obj/
|
rm -rf createqrcodes/obj/
|
||||||
rm -rf createqrcodes/bin/
|
rm -rf createqrcodes/bin/
|
||||||
rm -f createqr
|
rm -f createqr
|
||||||
|
rm -f qrcam
|
||||||
rm -rf qr/
|
rm -rf qr/
|
||||||
run:
|
run:
|
||||||
dotnet run -p:qrCamera/CameraPreview.csproj
|
dotnet run -p:qrCamera/CameraPreview.csproj
|
||||||
|
publish:
|
||||||
|
dotnet publish qrCamera/CameraPreview.csproj --self-contained true
|
||||||
+4
-3
@@ -27,6 +27,7 @@ namespace BarcodeReaderExample
|
|||||||
camera.Set(VideoCaptureProperties.FrameWidth, 1280);
|
camera.Set(VideoCaptureProperties.FrameWidth, 1280);
|
||||||
camera.Set(VideoCaptureProperties.FrameHeight, 720);
|
camera.Set(VideoCaptureProperties.FrameHeight, 720);
|
||||||
int fps = 60;
|
int fps = 60;
|
||||||
|
int avalibeImages = 20;
|
||||||
camera.Set(VideoCaptureProperties.Fps, fps);
|
camera.Set(VideoCaptureProperties.Fps, fps);
|
||||||
if (Directory.Exists("cache"))
|
if (Directory.Exists("cache"))
|
||||||
{
|
{
|
||||||
@@ -35,7 +36,7 @@ namespace BarcodeReaderExample
|
|||||||
|
|
||||||
Directory.CreateDirectory("cache");
|
Directory.CreateDirectory("cache");
|
||||||
Mat hey = new Mat("photo.png");
|
Mat hey = new Mat("photo.png");
|
||||||
Mat[] Cached = new Mat[10];
|
Mat[] Cached = new Mat[avalibeImages];
|
||||||
|
|
||||||
|
|
||||||
int imgX = 0;
|
int imgX = 0;
|
||||||
@@ -56,7 +57,7 @@ namespace BarcodeReaderExample
|
|||||||
IEnumerable<IEnumerable<OpenCvSharp.Point>> contours = null;
|
IEnumerable<IEnumerable<OpenCvSharp.Point>> contours = null;
|
||||||
// PointF[] location;
|
// PointF[] location;
|
||||||
|
|
||||||
string[] files = new string[20];
|
string[] files = new string[avalibeImages];
|
||||||
int files_index = 0;
|
int files_index = 0;
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
@@ -65,7 +66,7 @@ namespace BarcodeReaderExample
|
|||||||
camera.Read(frame);
|
camera.Read(frame);
|
||||||
|
|
||||||
Result result = ReadQrCode(frame);
|
Result result = ReadQrCode(frame);
|
||||||
Console.WriteLine(Lastimage.Empty());
|
// Console.WriteLine(Lastimage.Empty());
|
||||||
if (!(Lastimage.Empty()))
|
if (!(Lastimage.Empty()))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user