/tppocr2

Tesseract OCR of Pokemon dialog text on streaming video (modern version).

Primary LanguageC++GNU General Public License v3.0GPL-3.0

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 of this project.

Note: work in progress

Quick start

Requirements

Compiling:

  • C++17 compiler and associated C++ runtime
  • CMake 1.15 or newer
  • 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