当前注册人数155278人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Neural Network OCR

神经网络光学字符识别(OCR)源代码

2009年02月26日
老虎  热心分享
C#
神经网络开发的简单的光学字符识别(OCR)程序。 There are many different approaches to optical character recognition problem. One of the most common and popular approaches is based on neural networks, which can be applied to different tasks, such as pattern recognition, time series prediction, function approximation, clustering, etc.
 
相关知识
Introduction
There are many different approaches to optical character recognition problem. One of the most common and popular approaches is based on neural networks, which can be applied to different tasks, such as pattern recognition, time series prediction, function approximation, clustering, etc.
In this article, I'll try to review some approaches for optical character recognition using artificial neural networks. The attached project is aimed as a research project, so don't try to find here a ready solution for scanned document processing.
Test application
A test application is provided with the article, which tries to implement the second approach. How to use it? Let's try the first test:
* We need to generate initial receptors set. On application startup it's already generated, so we can skip this step, if are not planning to change the initial amount of receptors or the filtered amount.
* Select fonts, which will be used for teaching network. Let it be the regular Arial font for the first time.
* Generate data. In this step the initial training data will be generated.
* Filter data. In this step the initial receptors set as well as the training data will be filtered.
* Create network - a neural network will be created.
* Train network - neural networks training.
* Let's look at the misclassified value. It should be "0/26", which means that the trained network can successfully recognize all patterns from the training set.
* We can ensure this by using the "Draw" and "Recognize" buttons.
After performing all these steps we find that the concept is working! You can try a more complex test, choosing all regular fonts. But, don't forget to turn on the "Scale" option before data generation. The option will scale all images from the training set. Then you can set the error limit of the second pass to "0.5" for faster training or leave it "0.1" if you are not in a hurry. At the end of training you should get a misclassified value of "0 / 130". You can check that all images from the training set can be recognized.
You can even try to teach a network all fonts: regular and italic. You should use "Scale" option for it and you will need to play a little bit with the learning speed and error limit values. You can also try to use two-layered network. I was able to get a misclassified value of "4/260" with only 100 receptors.
老虎 2009年02月26日[编辑]
源代码原文下载:
Neural Network OCR A test application is provided with the article, which tries to implement the second approach. How to use it? Let's try the first test: * We need to generate initial receptors set. On application startup it's already generated, so we can skip this step, if are not planning to change the initial amount of receptors or the filtered amount. * Select fonts, which will be used for teaching network. Let it be the regular Arial font for the first time. * Generate data. In this step the initial training data will be generated. * Filter data. In this step the initial receptors set as well as the training data will be filtered. * Create network - a neural network will be created. * Train network - neural networks training. * Let's look at the misclassified value. It should be "0/26", which means that the trained network can successfully recognize all patterns from the training set. * We can ensure this by using the "Draw" and "Recognize" buttons.

源码图片

从本站下载附件及源代码(1个附件,已经成功下载584次)

最值得关注的外文源代码

Motion Detection Algorithms
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论92次,此处显示最近20次评论! 查看所有评论

luoc  2010年04月16日
谢谢了,学习学习
tom  2010年03月19日
不错啊
刘墉  2010年03月12日
在评论一下,看积分是不是有变化
刘墉  2010年03月12日
下载下来看看,谢谢
huangyan  2010年03月12日
好用么?
康康  2010年02月17日
Java学员,学习学习!
xuxiao1981  2009年10月03日
需要识别汉字啊
filebird  2009年08月25日
下载的Demo 怎么不能运行,报错!
Flashcom  2009年08月09日
正需要的代码,找了很久都没有找到,下来看看怎么样
mudage  2009年08月06日
必须写上几名,先下来看看
phil4000  2009年07月10日
我怎么下载不了呢???
hesongcool  2009年07月08日
好代码.
crcruicai  2009年06月05日
下来看看
bobo  2009年05月27日
不错,好东西
adad  2009年05月12日
非常不错的代码
yanggm  2009年04月24日
就是没有找到 .m 文件呢
sury0  2009年04月20日
值得研究
landy_di  2009年04月17日
很好
杨文文  2009年04月04日
非常不错的代码
diaonimade  2009年04月02日
挺好得
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号