SWT for OCR
来源:互联网 发布:电路板绘制软件 编辑:程序博客网 时间:2024/06/18 17:04
Introduction
SWT stands for Stroke Width Transform which is an algorithm often used for text detection in an OCR application.
Resources
Primarily two online resources have been particularly appealing to me due to its open source nature. Both implementations are C/C++ based.
- TextDetection
- VCC
Algorithm Description
TextDetection
Overview
TextDetection is a direct implementation of the original SWT algorithm published in a CVPR paper Detecting text in natural scenes with stroke width transform 1
The related resources can be found in the following web page:
Text Detection on Nokia N900 Using Stroke Width Transform
Key steps
1). Extract the stroke width at every pixel
- the key insight is that letters have roughly parallel side
- the algorithm depends on the gradient pointing into the letters
Main differences from the original work
- allowing the gradient directions to be up to 90 apart, instead of 30
- cannot detect light-on-dark and dark-on-light text simultaneously. Run twice to achieve the effect
- The original mentions some capacity for doing this, but it’s unclear how its done
- considering two pixels as neighbouring if the ratio of their stroke widths is between 1/3 and 3.
- Boost graph library is used
- use some of the heuristic rules from [original work] for filtering.
Main difference
- original work seems to do some kind of tracing of the rays formed in the first stage
- height threshold of 300 pixels is discarded
- the ratio of the diameter of a component to its SW mean
3). Chaining
- Use heuristics to find eligible pair
- the pairs are sorted by distance and then merged if they share an end (i.e. a component) and have a similar direction
Main difference
- vastly different results from the paper!
VCC
- www.math.tau.ac.il/~turkel/imagepapers/text_detection.pdf ↩
0 0
- SWT for OCR
- OCR SDK for iOS
- Tesseract-ocr For .NET
- Deep Learning for OCR
- SWT Designer for Eclipse 破解
- OCR
- OCR
- OCR
- OCR
- OCR
- OCR
- OCR
- swt-design破解for Eclipse3.1
- 64Eclipse for Ubuntu NO SWT解决
- SWT
- SWT
- swt
- swt
- Windows下单机安装Spark开发环境
- 制作简单的太阳系
- Android 从具体实例分析Bitmap使用时候内存注意点
- 检测用户名是否存在的特效
- error C2664: 'int CWnd::MessageBoxW(LPCTSTR,LPCTSTR,UINT)' : cannot convert argument 1 fr
- SWT for OCR
- windows mysql
- Spring表达式语言:SpEL语法
- 栗庙科三考场路线图及过关技巧
- 多线程下载断点续传
- postgresql基础学习
- SendKeys.SendWait 方法
- Android 自定义对话框样式
- eclipse配置tomcat加大内存的方法