Step 2: Open Project
You start your work with ABBYY FlexiCapture 12 SDK by creating theEngine object. Once the Engine object is created, you can use ABBYY FlexiCapture 12 SDK objects in your application.
To prepare the program for document processing with a preconfigured ABBYY FlexiCapture project, you need to open this project. ABBYY FlexiCapture 12 SDK can work with the projects created in ABBYY FlexiCapture 12 Developer's Package, or create a new project and set up everything from scratch. A project contains all the settings for processing a certain type of document: image import parameters, Document Definitions, and document batches for processing. The project folder must contain the project file (.fcproj file) and a folder with the Document Definitions.
In ABBYY FlexiCapture 12 SDK the project is represented by the Project object.
To open an existing project, use the OpenProject method of the Engine object. Pass the full path to the project file as the first parameter of the method.
If the project was created in older version of ABBYY FlexiCapture SDK or in ABBYY FlexiCapture older than the version provided in this Developer's Package, you will need to update it first. Call the UpdateProject method of the Engine object.
C++ (COM) code
This procedure is used in the ABBYY FlexiCapture 12 SDK samples which can be found in the Samples folder (Start > Programs > ABBYY FlexiCapture 12 SDK > Code Samples Folder).
Important! You must keep the reference to the Project object until you no longer need to access the objects of the project. Accessing objects of the already released Project object will cause errors. For details see Working with Properties.
After opening a project, you can work with its properties, add new images, recognize documents, and then export the results.
See also
15.08.2023 13:19:30