Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aperrault/DetectText
Detect text with stroke width transform.
https://github.com/aperrault/DetectText
c-plusplus opencv text-detection
Last synced: 9 days ago
JSON representation
Detect text with stroke width transform.
- Host: GitHub
- URL: https://github.com/aperrault/DetectText
- Owner: aperrault
- License: gpl-3.0
- Created: 2012-07-07T00:23:16.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-08T20:24:37.000Z (over 8 years ago)
- Last Synced: 2024-04-09T16:18:38.351Z (3 months ago)
- Topics: c-plusplus, opencv, text-detection
- Language: C++
- Size: 35.2 KB
- Stars: 332
- Watchers: 37
- Forks: 151
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Lists
- awesome-ocr - [code
README
DetectText
==========Detect text with stroke width transform.
## Dependencies
OpenCV 2.4+, boost.## Compile
g++ -o DetectText TextDetection.cpp FeaturesMain.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -I/path/to/current/directory
where /path/to/current/directory is replaced with the absolute path to the current directory.
### Using CMake
mkdir build
cd build
cmake ..
make## To run
./TextDetection input_file output_file dark_on_light
where dark_on_light is 1 or 0, indicating whether the text is darker or lighter than the background.## More
Details on the algorithm can be found in:
http://www.cs.cornell.edu/courses/cs4670/2010fa/projects/final/results/group_of_arp86_sk2357/Writeup.pdf