Skip to content

ykankaya/twse-captcha-solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • CMake 68.2%
  • C++ 31.8%