LEADTOOLS Support
Document
Document SDK FAQ
HOW TO: Retrieve Native Formats of the Professional Engine
#1
Posted
:
Monday, December 4, 2017 3:32:01 PM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
Some of the OCR engines supported by LEADTOOLS (for example, the OcrEngineType.Professional) support saving the recognition results using the engine native save mechanism instead of the LEADTOOLS Document Writers. You can use the native formats and the
EngineFormat property to set the format to use when saving the results.
Below you will see the list of native formats of the the OCR Professional engine. You can retrieve these formats by using the
GetSupportedEngineFormats method.
Code:
Console.WriteLine($"Supported engine formats with the {ocrEngine.GetType()}:\n");
IOcrDocumentManager ocrDocumentManager = ocrEngine.DocumentManager;
string[] engineFormats = ocrDocumentManager.GetSupportedEngineFormats();
foreach (string engineFormat in engineFormats)
{
string friendlyName = ocrDocumentManager.GetEngineFormatFriendlyName(engineFormat);
Console.WriteLine($"\nFormat name: {engineFormat}\nFriendly engine format name: {friendlyName}\n");
}
Edited by moderator Wednesday, December 27, 2023 3:15:36 PM(UTC)
| Reason: updated
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK FAQ
HOW TO: Retrieve Native Formats of the Professional Engine
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.