User Guide > How to Work with... > Recognition > Prepare the Image for Recognition > Work with Zones > Add Zones > Add Zones from a Zone File |
The third way of creating zones is by reading zones from a file (called a zone file) that contains the attributes of previously saved zones. An application can save the current zone definitions to a zone file any time with the ImGearRecZoneCollection.SaveToFile Method. The application can load them from a zone file with the LoadFromFile Method.
When a zone file is loaded, any previous zones on the image are removed.
If the application calls the ImGearRecPage.Recognize Method on an image with an empty zone list, the page-layout decomposition method is called automatically.