←Select platform

SaveZones(string,OcrWriteXmlOptions) Method

Summary

Saves zones to a multipage zones disk file with XML options.

Syntax
C#
VB
Objective-C
C++
Java
public void SaveZones( 
   string fileName, 
   OcrWriteXmlOptions xmlOptions 
) 
Overloads Sub SaveZones( _ 
   ByVal fileName As String, _ 
   ByVal xmlOptions As OcrWriteXmlOptions _ 
)  
- (void)saveZonesToFile:(NSString *)fileName 
        xmlWriteOptions:(nullable LTOcrWriteXmlOptions *)xmlWriteOptions 
                  error:(NSError **)error 
public void saveZones(String fileName, 
                      OcrWriteXmlOptions xmlOptions) 
void SaveZones(  
   String^ fileName, 
   OcrWriteXmlOptions^ xmlOptions 
)  

Parameters

fileName
The name of the file that will contain the zones data.

xmlOptions
Options to use when writing the XML data.

Remarks

To save and load the zones of OCR pages, you can use one of these methods:

Note on loading zones from a multipage zone file: If the file does not contain zones data with the correct page number, the engine will not load any zones for this page. After the method returns, any OCR page that did not have zones data will contain zero zones. (the IOcrPage.Zones property contains 0 items). You can then use IOcrPage.AutoZone if required to re-zone this page.

Use IOcrDocument.LoadZones(fileName) or IOcrPage.LoadZones(fileName, pageNumber) to load all or one page zones saved by this method.

To load and save the zones to a .NET stream, use IOcrDocument.SaveZones(stream), IOcrDocument.LoadZones(stream) and IOcrPage.LoadZones(stream, pageNumber).

Example

For an example, refer to IOcrDocument.SaveZones(fileName).

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly