帮助OCR应用程序 - Matlab [英] help with OCR application - Matlab

查看:206
本文介绍了帮助OCR应用程序 - Matlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的需要你的帮助,我很绝望。

I'm really need your help, I'm desperate.

我正在尝试建立一个OCR应用程序,我正面临一些问题,我可以单独解决。
现在我正在从图像切割板并进行一些过滤以减少噪音。例如,
,这是从图像切割后和过滤后的板块:

I'm trying to build an OCR application and I'm facing some problems that I can't solve alone. for now I'm cutting the plate form the image and doing some filtering to reduce the noise. for example, this is the plate after cutting it from the image and after filtering:

现在因为盘子是角度的,因为还有噪音(比如上面的数字9和3),识别过程(使用corr2)给我错误的数字。

now because that the plate is in angle and because that there is still noise (like above the numbers 9 and 3), the identification process(using corr2) is giving me the wrong numbers.

例如:

如你所见唯一的问题是数字9和3(在左侧),噪音是令人不安的。

as you see the only problem is in the numbers 9 and 3(at the left side) where the noise is disturbing.

我想拉伸图像,以便每个数字适合所有正方形(顶部没有黑线),但我找不到任何方法来做到这一点,它将适用于每个图像。

I thought to stretch the image so that each number will fit all the square (without the black lines at the top), but I can't find any method to do this that it will work for every image.

编辑:这是corr2函数的结果,我用红色标记了数字9和3的结果。

this is the results from the corr2 function, I marked in red the results of the numbers 9 and 3.

请给我一个想法或工作解决方案。 ..

please give me an idea or working solution...

任何帮助将不胜感激。

推荐答案

你可能会预先处理您在上一个问题中发布的图片:

You may pre-process the image you posted in a previous question:

类似于:( Mathematica中的代码)

with something like: (code in Mathematica)

Dilation[
   DeleteSmallComponents[
        Pruning[
            Thinning@
                Binarize[
                   ColorSeparate[
                      ColorNegate@yourColorImage, "HSB"][[3]], 
                .92], 
        10], 
   30],
3]

结果:

现在你的OCR应该没有太多麻烦,比如这个:

Now your OCR should pass without much trouble, like this one:

修改

一步逐步程序在您的其他问题中发布

A step by step procedure posted in your other question

这篇关于帮助OCR应用程序 - Matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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