Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried Tesseract OCR with typed text images and it works fine. Below is my code snippet.

I want to read handwritten images too. Can someone, who might have achieved the same help me out with it? Or a reference to any other libraries with which I can do it will also help.

Thanks,
Anand Subramanian.

What I have tried:

C#
<pre lang="C#">var Language = @"eng";

        var blogPostImage = @"./phototest.tif";

        using (var ocrEngine = new TesseractEngine(@".\tessdata", Language, EngineMode.Default))
        {
            using (var imageWithText = Pix.LoadFromFile(blogPostImage))
            {
                using (var page = ocrEngine.Process(imageWithText))
                {
                    var text = page.GetText();
                    Console.WriteLine(text);
                    Console.ReadLine();
                }
            }
        }</pre>
Posted

1 solution

for google cloud based OCR check below link:
https://developers.google.com/api-client-library/dotnet/apis/vision/v1

Also check this link, I donno if this is also cloud based or offline version.
GitHub - A9T9/Google-OCR-Vision-API-CSharp: Test app for the Google OCR features of the Google Vision API. Visual Studio C# project.[OCR]

To build OCR you need to recognize each character its curves and its flow.
As my personal experience building an OCV system is easier than building an OCR.
So I suggest to use 3rd party DLL's.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900