Stroke Width Transform (SWT) implementation (Java, C#…)

核能气质少年 提交于 2019-11-26 08:07:27

问题


I recently discovered the stroke width transform, as documented in the following research paper:

  • Detecting Text in Natural Scenes with Stroke Width Transform. Boris Epshtein, Yonathan Wexler, and Eyal Ofek. IEEE International Conference on Computer Vision and Pattern Recognition, 2010.

The algorithm is intended for detecting and extracting text from natural scenes.

However, I could not find any implementation, and from the paper I find it hard to determine all the details regarding the algorithm so I can implement it in practice. Does anyone know if this algorithm is implemented and used in practice in a system? Is there a C# or Java implementation of it?


回答1:


My friend Andrew and I implemented Stoke Width Transform (SWT) on a mobile phone during a class project at Cornell. Maybe you can get hint from the report.

The report: http://www.cs.cornell.edu/courses/cs4670/2010fa/projects/final/results/group_of_arp86_sk2357/Writeup.pdf

Our code: https://sites.google.com/site/roboticssaurav/strokewidthnokia

Updated code: https://github.com/aperrau/DetectText




回答2:


Here is code that does what you asked for: http://libccv.org/doc/doc-swt/

Other projects that are relevant:

  • https://www.google.com/search?q=text+detection+in+images
  • python and c++ implementation by TiRG (screenshot sample) : http://funkybee.narod.ru/
  • python and c++ implementation by TiRG (source code) : http://sourceforge.net/projects/tirg/


来源:https://stackoverflow.com/questions/4837124/stroke-width-transform-swt-implementation-java-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!