Giter Site home page Giter Site logo

wreckfest-results-ocr's Introduction

wreckfest-results-ocr

Extract data from screenshots of Wreckfest race results and dump those as plain text.

Installation

Unzip the executable and the data directory in any place, e.g. the Wreckfest screenshot directory for easy access.

Usage

Call the program with a Wreckfest screenshot picture either on the command line or by dropping the file over the executable in your file manager. It will store a CSV file with the extracted data in the current directory. This can be opened in Excel or any other spreadsheet editor.

Notes

Screenshots should be made in fullscreen mode after the race has ended but before players can return to the lobby. Screenshots can be made from a local game or from a Youtube video or Twitch stream if the quality is good and the result section is not obstructed by any banners or overlays.

Assign score based on position

To assign points based on position, add a file points.txt with the following format:

1 20
2 15
...
DNF 0

This assigns 20 points to the player on the first position and 15 to the second.

Driver names & teams

To correct the spelling of driver names and assign drivers to teams for aggregated results, you can add a file drivers.txt to the directory of the executable. The format is the following with one driver per line:

TeamName,DriverName

Build instructions

This application requires tesseract (version 4 or higher) to be installed.

Linux

$ sudo apt-get install libtesseract-dev
$ make

Windows

Known issues

  • Highlighted rows confuse the text extraction and might be missing from the output
  • Tested with 1920x1080 and 3440x1440. Other resolutions or aspect ratios might not work yet.

wreckfest-results-ocr's People

Contributors

pankrat avatar

Watchers

 avatar James Cloos avatar

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.