QR code (Quick Response code) is actually a 2D barcode that contains information that can be easily read and scanned by a QR Code reader and smartphone. Nowadays, QR Codes are being used in product information & marketing, mobile payments, access control, etc. In this article, we will discuss how to programmatically scan QR code using C# within a .NET application.

QR Code Reader using C# | Scan QR Code from Image

QR Code Scanner .NET API

GroupDocs.Parser for C# API is a solution that allows developers to extract information from various document formats, including PDF, Word, Excel, and many others. It offers a straightforward interface and comprehensive features, enabling effortless parsing of text, metadata, images, barcodes, and structured content from documents. In this article, I will use it to scan QR Codes from images within a .NET application using C#.

You can download the DLLs or MSI installer from the downloads section or install the API in your .NET application via NuGet.

PM> Install-Package GroupDocs.Parser

How to Scan QR Code using C#

The following few lines will compel you to change your mind about the misconception that scanning QR Code is a difficult task. Here are the steps that show how to read a QR code image:

  • Load the QR Code image using the Parser class.
  • Get the QR Code(s) of the loaded image.
  • Extract the enclosed message from the QR Code using the Value property.

The following C# source code scans the QR code image with the .NET application using C#:

Get a Free License

You can get a free temporary license to analyze the QR scanner and other features of the API without any evaluation limitations.

Conclusion

Today, you have just learned the simple way to scan QR Code from the image using C#. From this learning, you can develop your QR code Reader or simply create an online QR Code scanner application.

For more learning, you can visit the following useful material:

QR Code Scanner .NET API | Documentation

API Reference | Free Support | Code Samples

See Also