Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rjtavares/BirdsPyView

A streamlit app to convert images to top-down view and get coordinates of objects, built for football data collection
https://github.com/rjtavares/BirdsPyView

Last synced: about 2 months ago
JSON representation

A streamlit app to convert images to top-down view and get coordinates of objects, built for football data collection

Lists

README

        

[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/rjtavares/birdspyview/birdspyview.py)

First alpha version of BirdsPyView, a Streamlit app to transform perspective of an image to a top-down view by identifying a rectangle on the ground, built to collect data on football matches.

# Installation

First make sure you have **Python** installed.

Then install **OpenCV**, **Streamlit** and **Streamlit Drawable Canvas**:

pip install opencv-python
pip install streamlit
pip install streamlit-drawable-canvas

Finally, clone the repo and inside BirdsPyView run:

streamlit run birdspyview.py

# Getting started

1. Upload an image. All the lines from the Penalty Box must be visible, but the whole line is not necessary.

2. Draw a line over four pitch lines (from the options shown below), two of them vertical and two horizontal. You don't need to cover the whole line. If possible, use the penalty area.

![](BirdsPyView/pitch.png?raw=true)

3. If the converted image is clear, draw lines over each player feet. The output coordinate is the average position of the line.

4. If you need to start over, refresh the page.

# Demo

![](demo.gif?raw=true)