Mechanism Objects Compatibility with Version 10
This section describes all changes to mechanism objects which may require changes in the source code of your applications.
- The obsolete DocumentAnalyzer and Exporter objects have been removed. Use the more efficient methods of the FRDocument and FRPage objects, which take care of all the information needed for full document processing. You are no longer required to maintain the DocumentInfo object on all processing stages, keep track of all the image documents with the corresponding layouts, or implement the IRecognizedPages interface.
See below for recommendations on which methods should replace the methods of DocumentAnalyzer and Exporter you previously used.
Object/Enumeration | Property/Method/Constant | What has happened? | Comment |
---|---|---|---|
DocumentAnalyzer | Removed | The object is obsolete. Its methods were replaced by more efficient methods of the FRDocument and FRPage objects, which do not require you to maintain the DocumentInfo object on all processing stages, or implement the IRecognizedPages interface. | |
AddWordsToCacheDictionary AddWordToCacheDictionary CleanCacheDictionary |
Removed | Use the IFRPage::AddWordsToCacheDictionary, IFRPage::AddWordToCacheDictionary, IFRPage::CleanCacheDictionary methods for working with cache dictionaries. | |
AnalyzePage | Removed | Use the IFRPage::Analyze method instead. | |
AnalyzePages | Removed | Use the IFRDocument::Analyze method instead. | |
AnalyzeRegion | Removed | Use the IFRPage::AnalyzeRegion method instead. | |
AnalyzeTable | Removed | Use the IFRPage::AnalyzeTable method instead. | |
AnalyzeAndRecognizePage | Removed | Use the IFRPage::PreprocessAnalyzeRecognize method instead. | |
AnalyzeAndRecognizePages | Removed | Use the IFRDocument::Process method instead. It performs full processing of the document, including document synthesis. | |
AutoCleanRecognizerSession | Removed | Use the IEngine::AutoCleanRecognizerSession property, which works in exactly the same way. | |
CleanRecognizerSession | Removed | Use the IEngine::CleanRecognizerSession method, which works in exactly the same way. | |
DetectOrientation | Removed | Use the IFRPage::DetectOrientation method instead. | |
ExtractBarcodes | Removed | Use the IFRPage::ExtractBarcodes method instead. | |
FindPageSplitPosition | Removed | Use the IFRPage::FindPageSplitPosition method instead. | |
LearnCheckmarks | Removed | Use the IFRPage::LearnCheckmarks method instead. | |
RecognizeBlocks | Input parameters number changed | Use the IFRPage::RecognizeBlocks method instead. | |
RecognizeImageAsPlainText | Removed | To recognize an image as plain text create the FRDocument from the image with the help of the IEngine::CreateFRDocumentFromImage method, use the IFRDocument::Process method to recognize the document, then access the IFRDocument::PlainText property. | |
RecognizeImageDocumentAsPlainText | Removed | To recognize the page as plain text, use the IFRPage::PreprocessAnalyzeRecognize method, then access the IFRPage::PlainText property. | |
RecognizePage | Removed | Use the IFRPage::Recognize method instead. | |
RecognizePages | Removed | Use the IFRDocument::Recognize method instead. | |
RemoveGeometricalDistortions | Removed | Use the IFRPage::CorrectGeometricalDistortions method instead. | |
IDocumentAnalyzerEvents | Removed |
This interface is no longer necessary because the object which reported events has been removed. The IFRDocumentEvents and IFRPageEvents interfaces provide similar information on progress and errors for the objects which replaced DocumentAnalyzer. |
|
Exporter | Removed | The object is obsolete. Its methods were replaced by more efficient methods of the FRDocument and FRPage objects, which do not require you to maintain the DocumentInfo object on all processing stages, or implement the IRecognizedPages interface. | |
ExportPage | Removed | Use the IFRPage::Export method instead. | |
ExportPagesEx | Removed | Use the IFRDocument::Export method instead. | |
IExporterEvents | Removed |
This interface is no longer necessary because the object which reported events has been removed. The IFRDocumentEvents and IFRPageEvents interfaces provide similar information on progress and errors for the objects which replaced Exporter. |
|
FREngineModuleEnum | FREM_DocumentAnalyzer | Removed | This constant is no longer in use. |
ScanManager | ScanSources | Type changed | This property returns the ScanSources collection of scanning sources. New ScanSource interface provides access to extended scanning options. |
ScanOptionsInterfaceType | Removed | To set the type of scanning options dialog box use the UserInterfaceType parameter of the Scan and BeginScan methods of the ScanSource object. | |
ScanSourceSettings | Removed | The settings are specified for each scanning source separately. Use the ScanSource::ScanSettings property to specify scanning source settings. | |
Scan | Removed | Use the Scan method of the ScanSource object for synchronous scanning operation. But note that asynchronous scanning is now also supported, via the BeginScan method of the ScanSource object. | |
IScanManagerEvents | Removed | This interface is no longer in use. The scanning notifications are received through new IScanCallback interface. | |
ScanSourceSettings |
Brightness Delay |
Default value changed | The default value of these properties is 0. |
BrightnessControl PaperSize Resolution RotationAngle |
Default values changed | The default values of these properties are determined by the scanner capabilities. | |
PictureMode | Renamed, default value changed |
The new name of this property is ColorMode. The default value of this property depends on the scanner. |
|
UseFeeder | Removed | Use the PaperFeedMode property instead. | |
StopBetweenPages PauseBetweenPages |
Removed | Use the PauseBetweenPagesMode property instead. | |
ScanPictureModeEnum | Renamed | The new name of this enumeration is ScanColorModeEnum. The constants have been renamed likewise to have the SCM_ prefix instead of SPM_. | |
ScanPageRotationAngleEnum | Renamed | The new name of this enumeration is ScanRotationAngleEnum. The word Page is superfluous. | |
ScanOptionsInterfaceTypeEnum | Removed | The properties that used this enumeration have been removed. The ScanSourceUITypeEnum provides a similar set of constants. |
17.09.2024 15:14:41