https://github.com/coldnew/twse-captcha-solver
A simple captcha solver for http://bsr.twse.com.tw/bshtm/
https://github.com/coldnew/twse-captcha-solver
captcha captcha-solver opencv stock taiwan tesseract-ocr twse
Last synced: 14 days ago
JSON representation
A simple captcha solver for http://bsr.twse.com.tw/bshtm/
- Host: GitHub
- URL: https://github.com/coldnew/twse-captcha-solver
- Owner: coldnew
- License: mit
- Created: 2017-03-30T03:58:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T21:06:59.000Z (almost 8 years ago)
- Last Synced: 2025-04-12T15:04:58.654Z (14 days ago)
- Topics: captcha, captcha-solver, opencv, stock, taiwan, tesseract-ocr, twse
- Language: CMake
- Homepage:
- Size: 124 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twse-captcha-solver
[](https://raw.githubusercontent.com/coldnew/twse-captcha-solver/master/LICENSE)A simple captcha solver for Taiwan Stock Exchange's [website](http://bsr.twse.com.tw/bshtm/). The algorithm is based on [hhschu](https://github.com/hhschu/Captcha_OCR)'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](https://github.com/coldnew/twse-captcha-solver-java).
## Requirement
To build this application, you need to install following libraries:
- [OpenCV](https://opencv.org) 2.x
- [Tesseract](https://github.com/tesseract-ocr/tesseract)If you use Gentoo Linux, just use following command to install required packages:
```sh
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:
```sh
mkdir build && cd $_
cmake -DEANBLE_HIGUI=OFF ..
make -j9
```## Usage
You need to download the captcha image manually from [website](http://bsr.twse.com.tw/bshtm/), execute the tool in command line:
```sh
./twse-captcha-solver xxx.png
```## Screenshot

## Note
This application **ONLY** work on captcha like this:

## License
Copyright © 2017 Yen-Chin, Lee <>
Distributed under the [MIT License](http://opensource.org/licenses/MIT).