Giter Site home page Giter Site logo

basketball-object-tracker's Introduction

basketball-object-tracker

CS 231 Project Winter 2014

Project to perform single-view 3D reconstruction of basketball scenes using commonly available TV footage of games.

Our main objective is to identify location of court relative to camera.

Source code is located in the src directory:

  • To get an understanding of how the 4-point selection works, look at image_object.py, which calls most other files. (This script can be run without arguments.)
  • The homography estimation is done in homography.py. (This script can be run without arguments.)
  • Frame extraction is done in extract_frames.py. (This script requires arguments, which you can find by running with -h.)

basketball-object-tracker's People

Contributors

embirico avatar gpoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lixuwork

basketball-object-tracker's Issues

Fixing homography

Ok so last night we couldn't get the homography to work for our manual points.

Not sure what's wrong, but I managed to get it to work on a simple case.

To test, leaving things as were, i defined a new manual point which is identical to the model:

"test_left" : {
    "sideline, freethrow":{
        "x": 226,
        "y": 0
    },
    "sideline, baseline": {
        "x": 0,
        "y": 0
    },
    "closepaint, baseline": {
        "x": 0,
        "y": 396
    },
    "closepaint, freethrow": {
        "x": 226,
        "y": 396
    }
}

homography has good output for that:

>> python src/homography.py 
[[  1.00000000e+00   5.83877413e-17  -7.83591399e-14]
 [ -8.01464308e-16   1.00000000e+00   6.69300702e-15]
 [  2.72174920e-17   1.12957159e-17   1.00000000e+00]]
sideline, baseline
[[0], [0], [1]]
{u'y': 0, u'x': 0}
[[ -7.83591399e-14]
 [  6.69300702e-15]
 [  1.00000000e+00]]
closepaint, freethrow
[[226], [396], [1]]
{u'y': 396, u'x': 226}
[[ 226.]
 [ 396.]
 [   1.]]
sideline, freethrow
[[226], [0], [1]]
{u'y': 0, u'x': 226}
[[  2.26000000e+02]
 [ -1.74437927e-13]
 [  1.00000000e+00]]
closepaint, baseline
[[0], [396], [1]]
{u'y': 396, u'x': 0}
[[ -5.52375944e-14]
 [  3.96000000e+02]
 [  1.00000000e+00]]

Will keep looking...

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.