Machine Readable Zone (MRZ) Capture - Code Sample (Windows)
- Language:
- EN
- Product-Line:
- FineReader Engine
- Version:
- 12
- Platform:
- Windows
- Type:
- Knowledge Base & Support
- KB-Type:
- Code Samples Collection
- Category:
- Recognition
- Coding:
- C#
- Image:
Descritpion
The code sample 'MRZExtraction' demonstrates how ABBYY FineReader Engine 12 can be used for the data extraction from Machine Readable Zones (MRZ). The sample uses the basic objects and methods of ABBYY FineReader Engine 12:
1. Create the Engine object using the InitializeEngine
function.
2. Load the MachineReadableZone predefined profile using the LoadPredefinedProfile
method of the Engine object.
3. Call the CreateFRDocument
method of the Engine object to create the FRDocument
object.
4. Add pages from the image file to the document. Use the AddImageFile method
of the FRDocument
object.
5. [optional] Create the MrzProcessingParams
object to set up the MRZ format.
6. Call the ExtractMrz
method of the FRPage
object to extract data from MRZ.
7. Call the ExportToFile
method of the MrzData
object to save the extracted data to a file of the specified format. The precompiled sample demonstrates export to XML.
8. Close the FRDocument
object using the Close
method.
9. Unload FineReader Engine — use the DeinitializeEngine
function.
Back To:
- No tags, yet