Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.78 KB

README.md

File metadata and controls

55 lines (33 loc) · 1.78 KB

twse-captcha-solver

GitHub license

A simple captcha solver for Taiwan Stock Exchange's website. The algorithm is based on hhschu's python method.

This project is written in C++, if you want java version, you can take a look at coldnew/twse-captcha-solver-java.

Requirement

To build this application, you need to install following libraries:

If you use Gentoo Linux, just use following command to install required packages:

emerge media-libs/opencv app-text/tesseract

Building

By default, this application will display the image processing result via opencv's highui function, you can disable this feature by add -DEANBLE_HIGUI=OFF in your cmake build.

If you just want to get the captcha result and don't want do see any GUI display, just use following command to build this application:

mkdir build && cd $_
cmake -DEANBLE_HIGUI=OFF ..
make -j9

Usage

You need to download the captcha image manually from website, execute the tool in command line:

./twse-captcha-solver xxx.png

Screenshot

Screenshot

Note

This application ONLY work on captcha like this:

Sample

License

Copyright © 2017 Yen-Chin, Lee <coldnew.tw@gmail.com>

Distributed under the MIT License.