LEADTOOLS Support
Document
Document SDK Examples
How To: Minimum OCR to text demo using OCR Plus (C# .NET)
While some posts in this topic are more current, this topic was posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, October 30, 2008 5:16:40 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The attached project uses LEADTOOLS v16 OCR features.
The project is implemented using minimum code required to OCR a file and save it in a Plain Text file.
This shows the ease of use of LEAD 16 OCR and can be used as a starting point for other OCR projects.
It is a Visual Studio 2005 project written in C#
Edited by moderator Tuesday, October 18, 2016 11:34:48 AM(UTC)
| Reason: Not specified
#2
Posted
:
Friday, October 6, 2017 3:44:37 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 199
Was thanked: 28 time(s) in 28 post(s)
Updated to LEADTOOLS v19 with Visual Studio 2017. Also changed project to automatically select dll's for running in 32-bit and 64-bit.
Extract to "C:\LEADTOOLS 19\Examples\DotNet\CS\" to use the example.
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, October 15, 2019 10:22:28 AM(UTC)
Groups: Registered
Posts: 22
Project updated to LEADTOOLS v20 with Visual Studio 2019.
Overview of
LEAD Ocr EngineCode:RasterCodecs codecs = new RasterCodecs();
using (RasterImage image = codecs.Load(InputFileName.Text))
{
// Create and Start OCR Engine
IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD, false);
ocrEngine.Startup(null, null, null, @"C:\LEADTOOLS 20\Bin\Common\OcrLEADRuntime");
using (IOcrDocument document = ocrEngine.DocumentManager.CreateDocument())
{
document.Pages.AddPage(image, null);
document.Pages[0].Recognize(null);
document.Save(OutputFileName.Text, Leadtools.Document.Writer.DocumentFormat.Text, null);
if (checkComplete.Checked)
MessageBox.Show(this, "Finished processing file");
}
ocrEngine.Shutdown();
}
Robbey Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Examples
How To: Minimum OCR to text demo using OCR Plus (C# .NET)
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.