使用tesseract OCR识别手写图像 [英] Recognize handwritten images with tesseract OCR

查看:548
本文介绍了使用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>

推荐答案

用于基于Google Cloud的OCR检查链接:

https://developers.google.com/api-client-library/dotnet/apis/vision/v1



同时查看此链接,我不知道如果这也是基于云或离线的版本。

GitHub - A9T9 / Google- OCR-Vision-API-CSharp:用于Google Vision API的Google OCR功能的测试应用。 Visual Studio C#项目。 [ OCR ]



要构建OCR,您需要识别每个角色的曲线及其流量。

作为我建立OCV系统的个人经验比建立OCR更容易。

所以我建议使用第三方DLL。
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.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆