GithubHelp home page GithubHelp logo

lol-hero-recognition's Introduction

LOL's Hero Recognition

League of Legends: Wild Rift (a.k.a Wild Rift) is an mutiplayer online battle arena game developed by Riot Games. In the highlight moment detection systems, it is important to recognize the hero appearing on the message bar when a battle happens.

This repository will detect hero name from the screenshot capture.

From:

interface

To: "Ahri"

How can i do it?

1 Image detection and crop.

I was use OpenCV library to detection circle shape and rectangle shape, after that i crop the image follow the shape.

2 Prepare dataset

Combine data from step 1 and a part crawl from LoL page. Has been compiled in the data directory

1 Recognition.

I just used basic pretrained ResNet18 model. Modify to match the dataset.

How to use?

Installation

~ git clone https://github.com/RC-Sho0/LOL-Hero-Detection.git
~ cd LOL-Hero-Recognition
~ pip install -r requirements.txt

Prediction

You need to prepare the data folder you want to predict like "/alldata/test_data/test_images".

~ python predict.py --input_path <your_path> --output_path <path_of_predict>

All done!


If you like that, please Star my repo 🌟

And if you want to support let follows my github 🎆

Authorized by Sho0

lol-hero-recognition's People

Contributors

sowwnn avatar

Stargazers

Van Khanh avatar Phạm Võ Nhật Đăng avatar

Watchers

 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.