After starting the OCR engine, you can begin working with the document page(s). Pages can work with or without An OCR document.
The LEADTOOLS OCR methods provide support for the following when working with OCR pages:
As described in Programming with Leadtools .NET OCR, an IOcrPage page can be created directly using CreatePage without using an IOcrDocument object. These pages can be zoned and recognized and the OCR results can be obtained directly using GetText or GetRecognizedCharacters.
If the page are to be saved to a final document such as PDF or DOCX, then an IOcrDocument instance is required.
An instance of IOcrDocument contains the pages of a document. You can create a new OCR document using the IOcrDocumentManager.CreateDocument method. This method allows creation of memory-based or file-based documents.
Each OCR document can have one or more pages (IOcrPage objects). Each IOcrDocument contains an IOcrDocument.Pages property of type IOcrPageCollection that you can use to access the pages of a document.
IOcrDocument through the IOcrDocument.Pages property holds a collection of IOcrPage objects. Each of these IOcrPage objects contains the raster image used to create it (the image used when the page is loaded or added) and a group of OCR zones for the page either added manually or through auto-zoning.
The IOcrPageCollection interface implements standard .NET Collection{T}, IList{T}, and IEnumerable{T} interfaces and hence, you can use the member of these interfaces to add, remove, get, set and iterate through the different pages of the document if the document was memory-based.
For file-based document, adding a page to the document involves taking a snap shot of the current recognition data and store it internally. The page itself is not added to the collection and is not required to stay in memory. The collection is a read-only view on the document and the user can only add new pages and not remove or iterate through them
The following list contains the major functionality of the IOcrPageCollection interface:
Methods | Description |
---|---|
IOcrPageCollection.Add | Adds the recognition data of a IOcrPage to a document. File-based documents only. |
IOcrPageCollection.AddPage | Adds a single page from a RasterImage, DIB or an image file in disk file, .NET stream, remote URL. Memory-based documents only. |
IOcrPageCollection.AddPages | Adds multiple pages from a multi-page RasterImage or an image file in disk file, .NET stream or remote URL. Memory-based documents only. |
IOcrPageCollection.InsertPage | Inserts into a specific location a single page from a RasterImage, DIB or an image file in disk file, .NET stream, remote URL. Memory-based documents only. |
IOcrPageCollection.InsertPages | Inserts into a specific location multiple pages from a multi-page RasterImage or an image file in disk file, .NET stream or remote URL. Memory-based documents only. |
Methods | Description |
---|---|
IOcrPageCollection.ExportPage | Saves a single page in the document to a RasterImage object, an image file in disk file or a .NET stream. |
IOcrPageCollection.ExportPages | Saves multiple pages in the document to a multi-page RasterImage object, an image file in disk file or a .NET stream. |
Getting Started (Guide to Example Programs)
Programming with LEADTOOLS .NET OCR
An Overview of OCR Recognition Modules
Creating an OCR Engine Instance
Starting and Shutting Down the OCR Engine
Multi-Threading with LEADTOOLS OCR
OCR Spell Language Dictionaries
Using OMR in LEADTOOLS .NET OCR
OCR Languages and Spell Checking
OCR Tutorial - Adding and Painting Zones
OCR Tutorial - Working with Pages
OCR Tutorial - Recognizing Pages
OCR Tutorial - Working with Recognition Results
|
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.