/LeagueOCR

OCR based data collection from League of Legends Spectator Mode

Primary LanguageC#MIT LicenseMIT

Contributors Forks Stargazers Issues MIT License


LeagueOCR

OCR Analysis on League of Legends spectator games to augment the official Riot Games API
Explore the docs »

View Demo · Report Bug · Request Feature

About The Project

OCR Analysis on League of Legends spectator games to augment the official Riot Games API

Getting Started

To get a local copy up and running follow these steps.

Prerequisites

  • .NET Framework 4.7.2
  • Windows 10 20H1 (May 2020 Update) Build 19041

League Settings

  • Max UI Scale (100)
  • Both default and eSports timers supported
  • 16:9 Resolution (Native 1080p but higher should work well)

Installation

  1. Download latest release
  2. Unzip folder
  3. Run LeagueOCR.exe

Usage

Augment the Riot Games League of Legends API during spectator matches. Useful for stream overlays or real time game analysis when applications cant be installed on player computers to get this data through the game API directly.

Two endpoints are exposed at the moment.

http://localhost:3002/api/objectives

-> http://localhost:3002/api/objectives/Dragon
-> http://localhost:3002/api/objectives/Baron

http://localhost:3002/api/teams

-> http://localhost:3002/api/teams/(0/ORDER)
-> http://localhost:3002/api/teams/(1/CHAOS)

Objectives:

 [{
 	"Type":"mountain",
 	"Cooldown":267,
 	"IsAlive":false,
 	"TimesTakenInMatch":3,
 	"LastTakenBy":0,
 	"FoundTeam":true,
 	"TimeSinceTaken":3
 },
 {
 	"Type":"Baron",
 	"Cooldown":219,
 	"IsAlive":false,
 	"TimesTakenInMatch":1,
 	"LastTakenBy":1,
 	"FoundTeam":false,
 	"TimeSinceTaken":110
 }]

Teams:

 [{
 	"Id":0,
 	"TeamName":"ORDER",
 	"Gold":2500
 },
 {
 	"Id":1,
 	"TeamName":"CHAOS",
 	"Gold":2500
 }]

If you build a project using this, feel free to let me know!

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Any contributions you make are greatly appreciated. I am by no means an expert at .NET development and this project is somewhat of a mess in parts.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Lars Eble - @larseble

Project Link: https://github.com/floh22/LeagueOCR