Intelligent Character Recognition (ICR) application using mv
can anyone please help me this, i want to make a Intelligent Character Recognition (icr) read application using MVC c# please help me this as soon as poosible
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Maen BadwanPosted Mar 16, 2017, 12:23 PM
You can try using LEADTOOLS OCR-ICR .NET classes at the server side (web-service) to recognize your characters. For example, the following C# code shows how you can recognize handwritten text using LEADTOOLS Classes:
using (IOcrPage ocrPage = ocrEngine.CreatePage(rasterImage, OcrImageSharingMode.AutoDispose))
{
LogicalRectangle bounds = LogicalRectangle.FromLTRB(left, top, right, bottom, LogicalUnit.Pixel);
OcrZone zone = new OcrZone();
zone.ZoneType = OcrZoneType.Icr;
zone.Bounds = bounds;
ocrPage.Zones.Add(zone);
}
else
{
ocrPage.AutoPreprocess(OcrAutoPreprocessPageCommand.Invert, null);
}
// Otherwise, Recognize will auto-zone the image
ocrPage.Recognize(null);
string text = ocrPage.GetText(-1);
// Set the MIME type and Content-Type if there is a valid web context
HttpContext currentContext = HttpContext.Current;
if (currentContext != null)
{
currentContext.Response.ContentType = "text/plain";
currentContext.Response.Headers.Add("ContentLength", (text.Length * 2).ToString()); // In bytes
return text;
}
Also, the following forum post contains useful information about using OCR features with ASP.NET MVC project:
https://www.leadtools.com/support/forum/posts/t11140-HOW-TO--HTML5-Javascript-OCR-Demo-With-ASP-NET-MVC-as-External-Service