Jdt.ML.QRDetector 1.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Jdt.ML.QRDetector --version 1.0.7
NuGet\Install-Package Jdt.ML.QRDetector -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jdt.ML.QRDetector" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jdt.ML.QRDetector --version 1.0.7
#r "nuget: Jdt.ML.QRDetector, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jdt.ML.QRDetector as a Cake Addin
#addin nuget:?package=Jdt.ML.QRDetector&version=1.0.7

// Install Jdt.ML.QRDetector as a Cake Tool
#tool nuget:?package=Jdt.ML.QRDetector&version=1.0.7

Jdt.ML.QRDetector

Yolov8-based Barcode(QR & 2D Data Matrix) Detection and Decoding Library performance


๐Ÿšฉ How to use a library?

  • Nuget์—์„œ 'Jdt.ML.QRDetector' ๊ฒ€์ƒ‰ํ•˜์—ฌ ์„ค์น˜๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
  • ๊ธฐ๋ณธ์ ์œผ๋กœ, package์•ˆ์— ๋ฏธ๋ฆฌ ์ƒ์„ฑ๋œ QR Detect ๋ชจ๋ธ์ด ์ž„๋ฒ ๋”ฉ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
    ๋‹ค๋งŒ ์ˆ˜๋™์œผ๋กœ ์ƒˆ๋กœ์šด ๋ชจ๋ธ์„ ๋ถˆ๋Ÿฌ์˜ค๊ณ  ์‹ถ์œผ์‹  ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์ด ์‚ฌ์šฉ ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.
Inference detector = new Infrence("D:\MyCustomModel.onnx", useGPU: false);

1. QR Barcode ๊ฒ€์ถœ ๋ฐ Decode ๋ฐฉ๋ฒ• (๊ฒ€์ถœ ๋””์ฝ”๋”ฉ์„ ๊ฐ™์ด ์ง„ํ–‰ํ•˜๊ณ  ์‹ถ์„๋•Œ)

Inference detector = new Inference(useGPU: false); // ์ถ”๋ก ์— GPU๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, CUDA๋ฅผ ์„ค์น˜ํ•ด์•ผ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
string imagePath = @"D:\Sample01.jpg";

string decode = detector.DetectAndDecode(imagePath);
Console.WriteLine(decode);

2. QR Detect ๋ฐฉ๋ฒ• (๋””์ฝ”๋”ฉ ์—†์ด ๋ฐ”์ฝ”๋“œ ๊ฒ€์ถœ๋งŒ์ด ๋ชฉ์ ์ผ๋•Œ)

Inference detector = new Inference(useGPU: false); // ์ถ”๋ก ์— GPU๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, CUDA๋ฅผ ์„ค์น˜ํ•ด์•ผ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
string imagePath = @"D:\Sample01.jpg";

var result = detector.Detect(imagePath);
if (result.IsFound)
{
  // ๊ฒ€์ถœํ•œ Barcode ๊ฐฏ์ˆ˜ ์ถœ๋ ฅ
  Console.WriteLine($"Detected: {result.Prediction.Length}");

  foreach (var pred in result.Prediction)
  {
    // ๊ฒ€์ถœํ•œ ์˜์—ญ์˜ x,y,width,height ๊ฐ’
    var bbox = pred.Rectangle;
    // AI๊ฐ€ ๊ฒ€์ถœํ•œ ์˜์—ญ์˜ Score
    Console.WriteLine($"Inference Score: {Math.Round(pred.Score, 2)}");
  }
}

3. ๊ฒ€์ถœํ•œ QR Detect ์˜์—ญ Bounding Box๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฉ”์†Œ๋“œ

Inference detector = new Inference(useGPU: false);
string imagePath = @"D:\Sample01.jpg";

var drawBox = detector.Show(imagePath);
if (drawBox == null)
  return;

picturebox1.Image = drawBox;

show


โ„๏ธ Do You need image preprocessing?

  • Detect๋ฅผ ์ง„ํ–‰ ํ•˜๊ธฐ ์ „ ์ด๋ฏธ์ง€ ์ „์ฒ˜๋ฆฌ๋ฅผ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    PreprocessImage์— ์›ํ•˜๋Š” ์ „์ฒ˜๋ฆฌ๋ฅผ ์ž‘์„ฑ ํ›„ Bitmap ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋ฉด ํ•ด๋‹น ๊ฐ์ฒด๋กœ ์ถ”๋ก ์„ ์ง„ํ–‰ ํ•ฉ๋‹ˆ๋‹ค.
Inference detector = new Inference(false);
string imagePath = @"D:\Sample01.jpg";

_detector.PreprocessImage = (image) => 
{
    /* The provided 'image' is the image object before inference.
       After applying the image preprocessing you desire, return a bitmap object,
       and the AI inference will be performed using that bitmap object. */
    return new Bitmap(image, new Size(512, 512));
};
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8 1,749 11/7/2023
1.0.7 1,495 10/20/2023
1.0.6 1,930 9/7/2023
1.0.5 629 8/30/2023
1.0.4 652 8/29/2023
1.0.3 713 8/29/2023