本文介绍了使用tesseract OCR识别手写图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过使用键入文本图像的Tesseract OCR,它运行正常。下面是我的代码片段。



我也想阅读手写的图片。有可能达到同样程度的人可以帮助我吗?或者参考我可以做的任何其他图书馆也会有所帮助。



谢谢,

Anand Subramanian。



我尝试过:



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:

<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>

推荐答案


这篇关于使用tesseract OCR识别手写图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 11:11