Leadtools.Forms.Ocr Assembly Changes from Version 16.5 to Version 17
Note on LEADTOOLS for .NET v17
In LEADTOOLS for .NET v16.5, some assemblies had a dependency on System.Drawing. System.Drawing is the .NET 2.0 assembly used with the Windows Forms and GDI+ platforms. Since LEADTOOLS v17 treats Windows Forms, Windows Presentation Foundation (WPF) and Silverlight as equal citizens, certain types in this LEADTOOLS assembly has been changed to reflect that. For example, properties with System.Drawing.Point type have been changed to use the new Leadtools.LeadPoint type, methods with a parameter of System.Drawing.Rectangle type have been changed to use the new Leadtools.LeadRect type. The following table shows the old 16.5 and corresponding new v17 types:
Old v16.5 Type |
New v17 Type |
---|---|
System.Drawing.Point |
Leadtools.LeadPoint |
System.Drawing.Size |
Leadtools.LeadSize |
System.Drawing.Rectangle |
Leadtools.LeadRect |
System.Drawing.Color |
Leadtools.RasterColor |
System.Drawing.Drawing2.FillMode |
Leadtools.LeadFillMode |
These changes are not listed in the topics below.
New Types
The following types have been added in v17:
New Members
The following members have been added to existing types in v17:
Removed Types
The following types have been removed from v17:
Type | Description |
---|---|
OcrDocumentFormat |
Deprecated type removed. |
Removed Members
The following members have been removed from v17:
Member | Description |
---|---|
OcrDocumentFormat[] IOcrDocumentManager.GetSupportedFormats() |
Deprecated member removed. |
bool IOcrDocumentManager.IsFormatSupported(OcrDocumentFormat format) |
Deprecated member removed. |
String IOcrDocumentManager.GetFormatFileExtension(OcrDocumentFormat format) |
Deprecated member removed. |
String IOcrDocumentManager.GetFormatFriendlyName(OcrDocumentFormat format) |
Deprecated member removed. |
void IOcrEngine.Startup(RasterCodecs rasterCodecs, String workDirectory, String startupParameters) |
Deprecated member removed. |
void IOcrAutoRecognizeManager.Run(String imageFileName, String documentFileName, IList<String> zoneFileNames, OcrDocumentFormat documentFormat, OcrProgressCallback callback) |
Deprecated member removed. |
void IOcrDocument.Save(Stream stream, OcrDocumentFormat format, OcrProgressCallback callback) |
Deprecated member removed. |
void IOcrDocument.Save(String fileName, OcrDocumentFormat format, OcrProgressCallback callback) |
Deprecated member removed. |
Leadtools.Forms.Ocr Assembly Changes from Version 16 to Version 16.5
New Types
The following types have been added in v16.5:
Type | Description |
---|---|
Leadtools.Forms.Ocr.IOcrAutoRecognizeManager.Run | Converts an image file on disk to a document file in the specified document format. |
Leadtools.Forms.Ocr.IOcrZoneManager.OmrOptions | Gets the OMR settings currently being used by the engine. |
Leadtools.Forms.Ocr.IOcrEngine.EngineType | Gets the type of this IOcrEngine. |
Leadtools.Forms.Ocr.IOcrEngine.Startup | Starts the OCR engine. |
Leadtools.Forms.Ocr.IOcrEngine.DocumentWriterInstance | Gets the instance of the DocumentWriters object being used inside this Leadtools.Forms.Ocr.IOcrEngine. |
Leadtools.Forms.Ocr.IOcrOmrOptions | The OMR settings currently used in the engine. |
Leadtools.Forms.Ocr.IOcrOmrOptions.GetStateRecognitionCharacter | Gets the character used to represent an OMR state in the output document. |
Leadtools.Forms.Ocr.IOcrOmrOptions.GetStateRecognitionCharacter | Sets the character used to represent an OMR state in the output document. |
Leadtools.Forms.Ocr.IOcrOmrOptions.FrameDetectionMethod | Gets or sets the OMR frame detection mode. |
Leadtools.Forms.Ocr.IOcrOmrOptions.Sensitivity | Gets or sets the OMR sensitivity mode. |
Leadtools.Forms.Ocr.IOcrDocumentManager.GetEngineSupportedFormats | Gets a list of the engine native formats supported by this IOcrEngine". |
Leadtools.Forms.Ocr.IOcrDocumentManager.IsEngineFormatSupported | Gets a value indicating whether the specified engine native format is supported by this IOcrEngine. |
Leadtools.Forms.Ocr.IOcrDocumentManager.GetEngineFormatFileExtension | Gets the default file extension for the specified engine native format. |
Leadtools.Forms.Ocr.IOcrDocumentManager.GetEngineFormatFriendlyName | Gets the friendly name of the specified engine native format. For example, Adobe PDF files will return something similar to "Adobe PDF" and Microsoft Word documents will return "Microsoft Word" and so forth. |
Leadtools.Forms.Ocr.IOcrDocumentManager.EngineFormat | Gets or sets the name of the engine native format to use when saving OCR documents. |
Leadtools.Forms.Ocr.OcrOmrSensitivity | The OMR sensitivity mode. |
Leadtools.Forms.Ocr.IOcrDocument.Save(string, DocumentFormat, OcrProgressCallback) | Converts the cumulated recognition result stored in the pages of this OCR document to the final output document and store it a disk file. |
Leadtools.Forms.Ocr.IOcrDocument.Save(Stream, DocumentFormat, OcrProgressCallback) | Converts the cumulated recognition result stored in the pages of this OCR document to the final output document and store it in a .NET stream. |
Leadtools.Forms.Ocr.IOcrDocument.SaveXml(string, OcrXmlOutputOptions) | Converts the cumulated recognition result stored in the pages of this OCR document to XML data and store it in a disk file. |
Leadtools.Forms.Ocr.IOcrDocument.SaveXml(Stream, OcrXmlOutputOptions) | Converts the cumulated recognition result stored in the pages of this OCR document to XML data and store it in a .NET stream. |
Leadtools.Forms.Ocr.IOcrDocument.SaveXml(OcrXmlOutputOptions) | Converts the cumulated recognition result stored in the pages of this OCR document and return it as XML data. |
Leadtools.Forms.Ocr.IOcrLanguageManager.SupportsEnablingMultipleLanguages | Gets a value to indicate whether this engine supports enabling multiple languages at the same time. |
New Enumerations
The following enumerations have been added to existing types in v16.5:
Type | Description |
---|---|
Leadtools.Forms.Ocr.OcrDocumentFormat.PdfAText | Adobe PDF/A format with text only. Optimized for the long-term archiving of electronic documents and is based on the PDF Reference Version 1.4 from Adobe Systems Inc. (implemented in Adobe Acrobat 5) |
Leadtools.Forms.Ocr.OcrProgressOperation.RecognizeOmr | OCR progress callback operation identification. |
Leadtools.Forms.Ocr.OcrZoneType.VerticalText | Vertical characters (Asian) type zone. |
Leadtools.Forms.Ocr.OcrZoneType.LeftRotatedText | Left rotated text (90 degrees counter clockwise). For Latin, Greek and Cyrillic characters only. |
Leadtools.Forms.Ocr.OcrZoneType.RightRotatedText | Right rotated text (90 degrees counter clockwise). For Latin, Greek and Cyrillic characters only. |
Leadtools.Forms.Ocr.OcrSupportLockedExceptionType.OcrProfessionalAsian | Ocr Professional Asian support is required to use this feature. |
Leadtools.Forms.Ocr.OcrZoneRecognitionModule.Asian | Asian characters recognition module. |
Leadtools.Forms.Ocr.OcrSupportLockedExceptionType.Arabic | Ocr Arabic support is required to use this feature. |
Leadtools.Forms.Ocr.OcrSupportLockedExceptionType.EnginePdf | PDF support is required to use this feature (When saving a document using the engine native support, refer to IOcrDocumentManager.EngineFormat). |
Leadtools.Forms.Ocr.OcrEngineType.Arabic | Specifies the LEADTOOLS OCR Arabic engine. Internally, the OCR library inside Leadtools.Forms.Ocr.Arabic.dll is used. |
Leadtools.Forms.Ocr.OcrOmrZoneState | The zone OMR recognition state. |
Leadtools.Forms.Ocr.OcrOmrSensitivity | The OMR sensitivity mode. |
Leadtools.Forms.Ocr.OcrOmrFrameDetectionMethod | The OMR frame detection mode. |
Leadtools.Forms.Ocr.OcrZoneFillMethod.Asian | Possible content types of the zones. |
Leadtools.Forms.Ocr.OcrOmrZoneState | The zone OMR recognition state. |
Leadtools.Forms.Ocr.OcrLanguageGroup.Asian | Asian group - Contains the following languages: Chinese Traditional, Chinese Simplified, Japanese and Korean. |
New Structures
The following structures have been added in v16.5:
Type | Description |
---|---|
Leadtools.Forms.Ocr.OcrCharacter | Contains recognized character data |
Leadtools.Forms.Ocr.OcrZone.OmrState | Gets or sets the after-recognition state of the OMR mark if this is an OMR zone. |
Leadtools.Forms.Ocr.OcrZone.OmrConfidence | Gets or sets the after-recognition state of the OMR mark if this is an OMR zone. |
Leadtools.Forms.Ocr.OcrCharacter.Color | Gets or sets the character color. |
Deprecated Types
The following types have been removed in v16.5:
Type | Description |
---|---|
Leadtools.Forms.Ocr.OcrDocumentFormat.PdfAText | Adobe PDF/A format with text only. Optimized for the long-term archiving of electronic documents and is based on the PDF Reference Version 1.4 from Adobe Systems Inc. (implemented in Adobe Acrobat 5) |
Run(string, string, Generic IList, OcrDocumentFormat, OcrProgressCallback) Method | Converts an image file on disk to a document file in the specified document format. Use Run(string, string, Generic IList, DocumentFormat, OcrProgressCallback) Method instead. |
Leadtools.Forms.Ocr Assembly Changes from Version 15 to Version 16
New Features
With Version 16 the Leadtools.Document namespace has been deprecated and replaced by the new Leadtools.Forms.Ocr. It represents a new design, featuring:
- High-level design
- Increased ease of use
- Choice of multiple OCR Engines
In addition, OCR output can be saved as PDF/A.
New Assembly
The following assembly has been added to LEADTOOLS For .NET v16:
Namespace | Description |
---|---|
Leadtools.Forms.Ocr | Includes interfaces, classes, structures, enumerations and delegates to quickly and easily add document optical character recognition (OCR) technology into software applications. |