LEADTOOLS Support
Document
Document SDK Examples
HOW TO: Extract Barcode Information using the RecognitionEngine
#1
Posted
:
Monday, December 4, 2017 11:25:09 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 70
Was thanked: 4 time(s) in 4 post(s)
The LEADTOOLS CloudServices RecognitionEngine interface provides a high-level method to extract all barcode information from a file -- this method also allows you to also pass in a list of BarcodeOptions. This method will return an enumerable list of BarcodeData.
Code:
var inputStream = File.Open(@"leadtools.pdf", FileMode.Open);
LoadDocumentOptions loadOptions = new LoadDocumentOptions()
{
FirstPageNumber = 1,
LastPageNumber = 1
};
RecognitionEngine recognitionEngine = new RecognitionEngine();
BarcodeEngine barcodeEngine = new BarcodeEngine();
BarcodeReader reader = barcodeEngine.Reader;
var options = reader.GetAllDefaultOptions();
var barcodeInformation = recognitionEngine.ExtractBarcode(inputStream, loadOptions, reader, options, null);
foreach(var barcode in barcodeInformation)
{
Console.WriteLine("Symbology: "+ barcode.Symbology);
Console.WriteLine("Bounds: "+barcode.Bounds);
Console.WriteLine("Data: " + barcode.Value);
}
Barcode Data:
https://www.leadtools.co...9/dh/ba/barcodedata.htmlEdited by user Friday, December 29, 2017 4:25:51 PM(UTC)
| Reason: Not specified
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Examples
HOW TO: Extract Barcode Information using the RecognitionEngine
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.