Coder Social home page Coder Social logo

feup-rvau-2's Introduction

feup-rvau-2

Installation

Install Python 3 and, optionally, virtualenv

Clone the repository

git clone https://github.com/rendoir/feup-rvau-2.git

If using a Python3 virtualenv, start and activate it with:

cd feup-rvau-2/src/
virtualenv -p python3 env
. env/bin/activate

Install Python dependencies via:

pip3 install -r ../dependencies.txt

Running

Offside Line with Manual Homography

Run the manual homography offside line Python3 script using:

python3 offside.py

This script is prepared to handle any image from the right side of the field, with all penalty area points visible.
Click on the 4 points of the penalty area in a clockwise fashion1. Press Enter.
Click on the player where you'd want to draw the line. Press Enter.

1 Some machines only work with counter-clockwise (mainly when running Windows)

Free-kick with Manual Homography

Run the manual homography free-kick Python3 script using:

python3 free_kick.py

This script is prepared to handle any image from the left side of the field, with all goal area points visible.
Click on the 4 points of the goal area in a clockwise fashion1. Press Enter.
Click on the ball. Press Enter.

1 Some machines only work with counter-clockwise (mainly when running Windows)

Offside Line with Automatic Homography

Run the automatic homography offside line Python3 script using:

python3 offside_automatic.py

This script should be able to handle any image from the right side of the field, with all penalty area points visible. However, this isn't guaranteed as per image parameter tunning is often needed for lines and field detection.
Click on the player where you'd want to draw the line. Press Enter.

Free-kick with Automatic Homography

Run the automatic homography free-kick Python3 script using:

python3 free_kick_automatic.py

This script should be able to handle any image from the left side of the field, with all goal area points visible. However, this isn't guaranteed as per image parameter tunning is often needed for lines and field detection.
Click on the ball. Press Enter.

feup-rvau-2's People

Contributors

rendoir avatar antypurus avatar veryprofessionaldodo avatar

Stargazers

Berkan Yuce avatar vinhht avatar Nikhil Nayak 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.