GithubHelp home page GithubHelp logo

rokmonster / ocr Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 6.0 6.75 MB

OCR Engine for Rise Of Kingdoms

Home Page: https://docs.rokmonster.dev

License: GNU General Public License v3.0

Go 76.79% Makefile 1.93% HTML 18.62% Shell 2.26% Dockerfile 0.40%
rise-of-kingdoms ocr-recognition golang-application lilith game ocr riseofkingdoms

ocr's Introduction

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!

ocr's People

Contributors

dependabot[bot] avatar xor22h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ocr's Issues

Allow to define threshold in template-builder

Is your feature request related to a problem? Please describe.
Currently template builder always builds templates with static hardcoded threshold (1). Would be nice if it had a way to modify it, without manually editing created file with text editor.

Describe the solution you'd like
I want extra field in template builder to adjust it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.