ByteScout Barcode Reader SDK - C# - Read Checkboxes - ByteScout

ByteScout Barcode Reader SDK – C# – Read Checkboxes

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Read Checkboxes

How to read checkboxes in C# using ByteScout BarCode Reader SDK

The tutorial shows how to read checkboxes in C#

The sample shows steps and algorithm of how to read checkboxes and how to make it work in your C# application. Want to read checkboxes in your C# app? ByteScout BarCode Reader SDK is designed for it. ByteScout BarCode Reader SDK is the barcode decoder with support for code 39, code 128, QR Code, Datamatrix, GS1, PDF417 and all other popular barcodes. Can read barcodes from images, pdf, tiff documents and live web camera. Supports noisy and damaged documents, can split and merge pdf and tiff documents based on barcodes. Can export barcode decoder results to XML, JSON, CSV and into custom data structures.

This rich sample source code in C# for ByteScout BarCode Reader SDK includes the number of functions and options you should do calling the API to read checkboxes. Just copy and paste the code into your C# application’s code and follow the instruction. Further enhancement of the code will make it more vigorous.

You can download free trial version of ByteScout BarCode Reader SDK from our website to see and try many others source code samples for C#.

Try ByteScout BarCode Reader SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; using System.IO; using Bytescout.BarCodeReader; namespace CommonExample { class Program { const string ImageFile = "checkboxes-checked.png"; static void Main() { Console.WriteLine("Reading checkboxes from image {0}", Path.GetFullPath(ImageFile)); Reader reader = new Reader(); reader.RegistrationName = "demo"; reader.RegistrationKey = "demo"; // Enable check boxes recognition reader.BarcodeTypesToFind.Checkbox = true; /* ----------------------------------------------------------------------- NOTE: We can read barcodes from specific page to increase performance. For sample please refer to "Decoding barcodes from PDF by pages" program. ----------------------------------------------------------------------- */ // Find check boxes FoundBarcode[] barcodes = reader.ReadFrom(ImageFile); foreach (FoundBarcode barcode in barcodes) { Console.WriteLine("Found checkbox with type '{0}' and value '{1}'", barcode.Type, barcode.Value); } // Cleanup reader.Dispose(); Console.WriteLine("Press any key to exit.."); Console.ReadKey(); } } }

Try ByteScout BarCode Reader SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout BarCode Reader SDK page

Explore ByteScout BarCode Reader SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next