←Select platform

SaveZones(Stream) Method

Summary
Saves zones to a multipage zones .NET stream.
Syntax
C#
VB
C++
public void SaveZones( 
   Stream stream 
) 
Overloads Sub SaveZones( _ 
   ByVal stream As Stream _ 
)  
void SaveZones(  
   Stream^ stream 
)  

Parameters

stream
The .NET stream that will contain the zones 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 stream: If the stream 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(stream) or IOcrPage.LoadZones(stream, pageNumber) to load all or one page zones saved by this method.

To load and save the zones to a disk file, use IOcrDocument.SaveZones(fileName), IOcrDocument.LoadZones(fileName) and IOcrPage.LoadZones(fileName, pageNumber).

Example

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

Requirements

Target Platforms

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

Leadtools.Ocr Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.