Giter Club home page Giter Club logo

ballerstats's Introduction

BallerStats

This is the presentation for the final project of the course Intro to Computer Vision. Our program estimates the distance traveled by a basketball player based on video footage. We combined camera calibration, object tracking, depth estimation with deep learning, and image transformations in this project.

Presentation

Our Presentation Video

See more demo videos under Release

Requirements

Python 3

pip install -r requirements.txt

For camera calibration, see the README inside the camera_calibration folder

For depth prediction, see the README inside the depth folder

Usage

  1. Download our BallerSet dataset from the release page.

  2. Unzip BallerSet and place the contents in the ./depth folder

  3. Run our program with the command

python main.py

Performance

The camera calibration has an average absolute percent error of 11.78%, the depth estimation has an average absolute percent error of 11.67%. Cumulatively, BallerStats has an average percent error of 46% with a standard deviation of 17% on our BallerSet dataset. The model always overestimates the distance traveled.

Authors

Robert Buckley, Richard Guan, Jensen Hwa, Tony Pan, Calvin Zheng

Acknowledgements

  • BallerStats used open-source code from Robust Monocular Depth Estimation to generate depth disparity maps. We modified some of their code in accordance with the MIT License agreement, and encapsulated everything related to depth prediction in the ./depth folder of this repo. Citation for their paper:
@article{Ranftl2020,
	author    = {Ren\'{e} Ranftl and Katrin Lasinger and David Hafner and Konrad Schindler and Vladlen Koltun},
	title     = {Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer},
	journal   = {IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)},
	year      = {2020},
}

License

We have listed our software under the MIT License

ballerstats's People

Contributors

jensenhwa avatar rguan72 avatar robertbuckley avatar tonypan2000 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ballerstats's Issues

Need Better Visualization

Make our program's cv2 window look better:

  1. different color bounding boxes for Richard vs target
  2. display trajectory of Richard
  3. display distance traveled

Performance Evaluation

  1. Get a table with video name and ground truth distance of how far Richard travels
  2. Get a set of images with varying depth to get the absolute errors of depth estimation
  3. Calculate the absolute distance error with the whole system

Tracker gets lost

Use high framerate for tracker but keep low frame rate of depth predictor while keeping both in sync

Constrain depth

convert disparity and constrain depth map with known object points

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.