Convert a document - 'DIBHello' Code Sample (Linux)
- Language:
- EN
- Product-Line:
- FineReader Engine
- Version:
- 12
- Platform:
- Linux
- Type:
- Knowledge Base & Support
- KB-Type:
- Code Samples Collection
- KB-Topic:
- Recognition, General, Programming Aspects, Export
- Category:
- Recognition, Export
- Coding:
- C++
- Image:
This sample demonstrates how ABBYY FineReader Engine Linux may be used for processing of an device-independent bitmap (DIB) from memory. The main scenario, the objects and called methods remain the same as in the standard Hello sample.
Description
The procedure of recognizing and exporting an image file uses the basic objects and methods of ABBYY FineReader Engine.
Do the following:
- Create the
Engine
object using theInitializeEngine
function. - Call the
CreateFRDocument
method of theEngine
object to create theFRDocument
object. - Call the
OpenDib
method of theEngine
object to open the specified DIB file. - Add the opened DIB file to a document. Use the
AddImageDocument
method of theFRDocument
object. - Preprocess all pages in the document with the
Preprocess
method of theFRDocument
object. - Perform the layout analysis of all pages in a document with the
Analyze
method of theFRDocument
object. - Perform recognition of all pages in the document with the
Recognize
method of theFRDocument
object. - Perform synthesis of all pages in the document with the
Synthesize
method of theFRDocument
object. - Call the Export method of the
FRDocument
object to save the document to a file of the specified format. - Unload FineReader Engine — use the
DeinitializeEngine
function.
For the description of used objects and their methods and properties see the Developer's Help.
Back To: