ByteScout Barcode Reader SDK - C# - Read Barcodes From TIFF - ByteScout

ByteScout Barcode Reader SDK – C# – Read Barcodes From TIFF

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Read Barcodes From TIFF

How to read barcodes from TIFF in C# with ByteScout BarCode Reader SDK

This tutorial will show how to read barcodes from TIFF in C#

Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout BarCode Reader SDK can read barcodes from TIFF. It can be used from C#. ByteScout BarCode Reader SDK is the SDK for barcode decoding. Can read all popular types from Code 128, GS1, UPC and Code 39 to QR Code, Datamatrix, PDF417. Images, pdf, TIF images and live web camera are supported as input. Designed to handle documents with noise and defects. Includes optional splitter and merger for pdf and tiff based on barcodes. Batch mode is optimized for high performance with multiple threads. Decoded values can be exported to XML, JSON, CSV or into custom data format.

You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout BarCode Reader SDK for read barcodes from TIFF below and use it in your application. Just copy and paste the code into your C# application’s code and follow the instruction. Use of ByteScout BarCode Reader SDK in C# is also explained in the documentation included along with the product.

Trial version of ByteScout BarCode Reader SDK can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System; using Bytescout.BarCodeReader; namespace BarcodesFromTIFF { class Program { static void Main() { Reader reader = new Reader(); reader.RegistrationName = "demo"; reader.RegistrationKey = "demo"; // Limit search to 1-dimensional barcodes only (exclude 2D barcodes to speed up the processing). // Change to barcodeReader.BarcodeTypesToFind.SetAll() to scan for all supported 1D and 2D barcode types // or select specific type, e.g. barcodeReader.BarcodeTypesToFind.PDF417 = True reader.BarcodeTypesToFind.All1D = true; Console.WriteLine("Reading barcode(s) from TIFF image..."); /* ----------------------------------------------------------------------- NOTE: We can read barcodes from specific page to increase performance. For sample please refer to "Decode page by page from TIFF" program. ----------------------------------------------------------------------- */ FoundBarcode[] barcodes = reader.ReadFrom("multipage.tif"); foreach (FoundBarcode barcode in barcodes) { Console.WriteLine("Found barcode with type '{0}' and value '{1}' on page {2} at {3}", barcode.Type, barcode.Value, barcode.Page, barcode.Rect); } // Cleanup reader.Dispose(); Console.WriteLine(); Console.WriteLine("Press any key to continue."); Console.ReadKey(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next