This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/barcodes/read-scan/read-qr-code-from-image.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Reading QR codes from images | Nutrient .NET SDK

This guide demonstrates how to read QR code data from an image.

Use this workflow when you need to:

  • Decode URLs, IDs, or text stored in QR codes
  • Process one or more QR codes in a single image
  • Integrate QR scanning into document or inventory pipelines

Implementation

The workflow loads an image, scans for QR codes, and reads decoded values:

using GdPicture14;
LicenseManager licence = new LicenseManager();
licence.RegisterKEY(""); // Set a demo key
using GdPictureImaging imaging = new GdPictureImaging();
int imageId = imaging.CreateGdPictureImageFromFile(@"input_qr_code.png");
imaging.BarcodeQRReaderDoScan(imageId);
int barcodesCount = imaging.BarcodeQRReaderGetBarcodeCount();
string barcodeValue = imaging.BarcodeQRReaderGetBarcodeValue(1);

Notes

  • Use BarcodeQRReaderGetBarcodeCount() to determine how many QR codes were detected.
  • Use BarcodeQRReaderGetBarcodeValue(index) to read each result by index.
  • Add status checks in production code to handle image load and scan failures.

Conclusion

This workflow detects QR codes in an image and extracts decoded values for downstream processing.