Online Guide

For Using BC.NetCoreBarcodeReader.All
How to decode and read 2d & 1d barcodes from images in .NET Core applications at a fast speed.

Guide Overview

BC.NetCoreBarcodeReader.All library grants highly accurate barcodes recognition from images in .NET Core projects. It is widely used to decode and read barcodes from images in your .NET Core, ASP.NET Core Web, C#/VB.NET Core Class Library, .NET Core Console App, etc. It supports reading 2D & 1D barcodes from images in .NET Core projects at a fast speed. 2D and 1D barcodes, like QR Code, Data Matrix, PDF417, Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E, and Interleaved 2 of 5, can be read and decode from loaded images. You may directly download the free trial and run the demo project to see more.

BC.NetCoreBarcodeReader.All
How to Read Barcode from Image in .NET Core Applications

In the following part, we take the .NET Core Console App as an example of how to use BC.NetCoreBarcodeReader.All to scan and read a barcode from an image. Here, we use the assembly "BC.NetCore21BarcodeReaderTrial.All.dll" which is for .NET Core 2.1. In all, four dlls are provided in the package and be used for .NET Core 2.1, 3.1, 5.0, and 6.0. PLEASE NOTE: the first character of barcode will be recognized as "BC.Trial" for trial package.

1. Create a new .NET Core Console App (.NET Core) project (Type: Visual C#);
2. Add your .NET Core project reference to the assembly "BC.NetCore21BarcodeReaderTrial.All.dll";
3. "BC.NetCore21BarcodeReaderTrial.All.dll" relies on "System.Drawing.Common". So, "System.Drawing.Common" should be added.
    a. Choose "Manage NuGet Packages..." in the "Dependencies" menu to open the "NuGet Package Manager" tab;
    b. Choose "Browse" tab and search the NuGet package "System.Drawing.Common" in the Package source "nuget.org";
    c. Install the System.Drawing.Common to your .NET Core project.
4. Use the C# code below to test. Here, we also provide the VB.NET code example(see as follows).

C# Code for .NET Core Barcode Reading

using System;
using BC.NetCore21BarcodeReaderTrial.All;

namespace BC.NetCore21BarcodeReaderTrial.All.Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            ReadOneBarcodeTypefromImage();
        }
        public static void ReadOneBarcodeTypefromImage()
        {
            //String inputFilePath = @"E:\1.png";

            String[] data = NetCoreBarcodeScanner.Recognize("Qrcode.jpg", NetCoreBarcodeReader.Qrcode);

            foreach (string result in data)
            {
                Console.WriteLine(result);
            }
            Console.ReadKey();
        }
    }
}

VB.NET Code for .NET Core Barcode Reading

Imports System
Imports BC.NetCore21BarcodeReaderTrial.All

Namespace BC.NetCore21BarcodeReaderTrial.All.Demo
    Class Program
        Private Shared Sub Main(ByVal args As String())
            ReadOneBarcodeTypefromImage()
        End Sub

        Public Shared Sub ReadOneBarcodeTypefromImage()
            'Dim inputFilePath As String = "E:\1.png"
            Dim data As String() = NetCoreBarcodeScanner.Recognize("Qrcode.jpg", NetCoreBarcodeReader.Qrcode)

            For Each result As String In data
                Console.WriteLine(result)
            Next

            Console.ReadKey()
        End Sub
    End Class
End Namespace

Besides reading barcodes from images in .NET Core applications, we also provide a barcode reader library for .NET Framework. If you are looking for a .NET PDF barcode scanner library, you may click to see more.


How did you find our BC.NetCoreBarcodeReader.All? Customers may search online using words like read barcode from image .net core, .net core read barcode from image file, read barcode from image vb.net core application, vb.net core read barcode from image file, scan barcodes from image .net core, .net core read barcodes from image, read barcode from asp.net core web, asp.net core web read barcode, read barcode c#.net core application, .net core read barcode in web application, scan barcode from image c#.net core, c#.net core scan barcode, decode barcode in .net core free code example, decode barcode from image .net core api, recognize barcode .net core sdk, how to read barcode vb.net core, how to scan barcode c#.net core, asp.net core barcode reader, asp.net core barcode scanner, how to recognize barcode from image in .net core, how to decode barcode .net core console app, etc.