OCR Analysis on League of Legends spectator games to augment the official Riot Games API
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
OCR Analysis on League of Legends spectator games to augment the official Riot Games API
To get a local copy up and running follow these steps.
- .NET Framework 4.7.2
- Windows 10 20H1 (May 2020 Update) Build 19041
- Max UI Scale (100)
- Both default and eSports timers supported
- 16:9 Resolution (Native 1080p but higher should work well)
- Download latest release
- Unzip folder
- Run LeagueOCR.exe
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!
See the open issues for a list of proposed features (and known issues).
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.
Distributed under the MIT License. See LICENSE
for more information.
Lars Eble - @larseble
Project Link: https://github.com/floh22/LeagueOCR