https://github.com/chfoo/tppocr2
Tesseract OCR of Pokemon dialog text on streaming video (modern version).
https://github.com/chfoo/tppocr2
Last synced: 11 months ago
JSON representation
Tesseract OCR of Pokemon dialog text on streaming video (modern version).
- Host: GitHub
- URL: https://github.com/chfoo/tppocr2
- Owner: chfoo
- License: gpl-3.0
- Created: 2019-11-28T16:52:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T03:03:44.000Z (over 5 years ago)
- Last Synced: 2025-01-23T12:37:22.311Z (about 1 year ago)
- Language: C++
- Size: 7.33 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tppocr2
Tesseract OCR of Pokemon (or video game) dialog text on streaming video (modern version).
This project reads streaming video and runs OCR on defined regions for streams such as TwitchPlaysPokemon. For previous
information, see [version 1](https://github.com/chfoo/tppocr) of this project.
Note: **work in progress**
## Quick start
### Requirements
* [Tesseract](https://github.com/tesseract-ocr/tesseract) 4
* [tessdata_best](https://github.com/tesseract-ocr/tessdata_best) or [tessdata_fast](https://github.com/tesseract-ocr/tessdata_fast)
* Which should contain: eng jpn chi_sim chi_tra kor spa deu ita
* [Leptonica](http://www.leptonica.org/)
* [ffmpeg](https://ffmpeg.org/download.html)
* [OpenCV](https://docs.opencv.org/master/df/d65/tutorial_table_of_content_introduction.html) 4
* [EAST](https://github.com/argman/EAST) trained model
* Download the Tensorflow trained model from [this link](https://www.dropbox.com/s/r2ingd0l3zt8hxs/frozen_east_text_detection.tar.gz?dl=1)
Compiling:
* C++17 compiler and associated C++ runtime
* CMake 1.15 or newer
* [tomlplusplus](https://marzer.github.io/tomlplusplus/) headers
### Building
mkdir -p build
cd build
cmake .. -D CMAKE_BUILD_TYPE=Release
cmake --build . --config Release
Optional:
cmake --install --config Release --prefix install_prefix
### Running
Basic usage:
./build/tppocr --help
./build/tppocr CONFIG_FILE URL_OR_FILE_PATH
Example:
./build/tppocr --debug-window --frame-stepping data/tpp-sword-720p.toml sample_images/sword_720p_narrator_dialog.png