Skip to content

rokmonster/ocr

Repository files navigation

ROK Monster OCR (GoLang)

Discord License: GPL-3.0 Go Report Card


👋 An idea for this project came from ROK Monster OCR Tools.


👋 Join our Discord for help getting started or show off your results!


Kingdom Statistics

Command line tools to help collect player statistics from Rise of Kingdoms. By analyzing screenshots we can extract various data points such as governor power, deaths, kills and more. This can help with various kingdom statistics or fairly distributing KvK rewards.

Sample

asciicast

Features

  • Character recognition by Tesseract
  • Easy install with package managers apt-get / yum
  • Fast hash based image comparison
  • Automated pick of best-match template (based on first image in media directory)
  • Easy to use WebUI. Just open localhost:8080, upload files, and get results directly in your browser.
  • Automatic download/update of Tesseract data files.

Future Plans

  • Ability to use multiple templates in single run
  • Discord BOT mode. (Process each image sent to a specific discord channel)
  • Automate screnshot collection using ADB & Memu/LDPLay/real android device

Limitations

  • English language is preferred as coordinate information lines up most accurately with English.
  • No way to merge user information from different screens.
  • Best template is detected automatically, but same template is used for all files in media directory.
  • Requires a template defined for proper device (resolution/acpect-ratio/language)
  • Limited number of predefined templates

Getting started

Read the docs here

Community

Have a question, an idea, or need help getting started? Checkout our Discord!