Returns a dictionary representing the results of processing the MRTD document.
public Dictionary<MRTDField,MRTDDataElement> Results {get;}Public ReadOnly Property Results As Dictionary(Of MRTDField,MRTDDataElement)@property (nonatomic, strong, readonly, nullable) NSDictionary<NSNumber *, LTMRTDDataElement *> *resultspublic HashMap<MRTDField, MRTDDataElement> getResults()public:property Dictionary<MRTDField,MRTDDataElement^>^ Results {Dictionary<MRTDField,MRTDDataElement^>^ get();}
Dictionary containing the results of processing an MRTD document.
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.FormsImports Leadtools.Forms.OcrImports Leadtools.Forms.Commands<TestMethod>Public Sub TestMRTDReader()' Initialize the RasterCodecs classDim codecs As New RasterCodecs()' Initialize the BankCheckReader classDim mrtdReader As New MRTDReader()' The bank cheque imageDim chequePath As String = Path.Combine(LEAD_VARS.ImagesDir, "MRZ_SAMPLE.jpg")Dim image As RasterImage = codecs.Load(chequePath)Using ocrEngine As IOcrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Advantage, False)ocrEngine.Startup(Nothing, Nothing, Nothing, "C:\LEADTOOLS 19\Bin\Common\OcrAdvantageRuntime")' Assign Engine to ReadermrtdReader.OcrEngine = ocrEngine' Process ImagemrtdReader.ProcessImage(image)If mrtdReader.Errors = MRTDErrors.NoError ThenFor Each value As KeyValuePair(Of MRTDField, MRTDDataElement) In mrtdReader.ResultsConsole.WriteLine(String.Format("Data Element Field: {0}", value.Key.ToString()))Console.WriteLine(String.Format("Data Element Value: {0}", value.Value.ReadableValue))Console.WriteLine(String.Format("Data Element Code : {0}", value.Value.MrzCharacters))Console.WriteLine(String.Format("Data Element Valid: {0}", value.Value.IsValid.ToString()))Console.WriteLine("************************************")NextEnd IfEnd UsingEnd SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"End Class
using Leadtools;using Leadtools.Codecs;using Leadtools.Forms;using Leadtools.Forms.Ocr;using Leadtools.Forms.Commands;public void TestMRTDReader(){// Initialize the RasterCodecs classRasterCodecs codecs = new RasterCodecs();// Initialize the BankCheckReader classMRTDReader mrtdReader = new MRTDReader();// The bank cheque imagestring chequePath = Path.Combine(LEAD_VARS.ImagesDir, "MRZ_SAMPLE.jpg");RasterImage image = codecs.Load(chequePath);IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.Advantage, false);ocrEngine.Startup(codecs, null, null, LEAD_VARS.OcrAdvantageRuntimeDir);// Assign Engine to ReadermrtdReader.OcrEngine = ocrEngine;// Process ImagemrtdReader.ProcessImage(image);if (mrtdReader.Errors == MRTDErrors.NoError){foreach (var value in mrtdReader.Results){Console.WriteLine(string.Format("Data Element Field: {0}", value.Key.ToString()));Console.WriteLine(string.Format("Data Element Value: {0}", value.Value.ReadableValue));Console.WriteLine(string.Format("Data Element Code : {0}", value.Value.MrzCharacters));Console.WriteLine(string.Format("Data Element Valid: {0}", value.Value.IsValid.ToString()));Console.WriteLine("************************************");}}ocrEngine.Shutdown();}static class LEAD_VARS{public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";}
|
Products |
Support |
Feedback: Results Property (MRTDReader) - Leadtools.Forms.Commands |
Introduction |
Help Version 19.0.2017.3.21
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.