coldnew / twse-captcha-solver

A simple captcha solver for http://bsr.twse.com.tw/bshtm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple captcha solver for http://bsr.twse.com.tw/bshtm/

License:MIT License


Languages

Language:CMake 68.2%Language:C++ 31.8%