LEADTOOLS Support
Document
Document SDK Examples
HOW TO: Extract License Information using the RecognitionEngine
#1
Posted
:
Monday, December 4, 2017 10:50:48 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 License information from a file. Note, that this method currently only supports United States and EU licenses. The method will return an IDCardResult corresponding to the information extracted from the file.
Code:
var inputStream = File.Open(@"leadtools.pdf", FileMode.Open);
LoadDocumentOptions loadOptions = new LoadDocumentOptions()
{
FirstPageNumber = 1,
LastPageNumber = 1
};
RecognitionEngine recognitionEngine = new RecognitionEngine();
IOcrEngine engine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD, false);
engine.Startup(null, null, null, @"path/to/OCR Bin Directory");
var licenseInformation = recognitionEngine.ExtractLicense(inputStream, loadOptions, engine, null);
Console.WriteLine("License ID Number: " + licenseInformation.IDNumber);
Console.WriteLine("Expiration Date: " + licenseInformation.ExpireDate);
Console.WriteLine("LIssue Date: " + licenseInformation.IssueDate;
Console.WriteLine("Country: " + licenseInformation.Country);
Console.WriteLine("DOB: " + licenseInformation.BirthDate);
IDCardResults:
https://www.leadtools.co...h/fco/idcardresults.htmlEdited by user Friday, December 29, 2017 4:24:47 PM(UTC)
| Reason: Not specified
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Examples
HOW TO: Extract License 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.