Code Monkey home page Code Monkey logo

foosball-ai's People

Contributors

darwinsbuddy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ggasyd

foosball-ai's Issues

apply frame mask auto-magically

  1. dewarp video (based on chessboard or marker based calibration)
  2. detect edges of the table
  3. resize used frame mask according to table dimensions on dewarped image

Prevent false positive goals

Following scenarios should be circumvented which appeared in a test game:

  • ball track lost for some frames, reappearing and geting lost again within the goal boundaries
  • ball track lost for a couple of frames "near" a goal and counted as goal (as it was not lost factually inside a goal, but within the wrongly recognized boundaries)

Solution:

Make analyzer count a goal only after some grace period of x frames or x fractions of a second without a track re appearing

improve ball tracking

after the blob detection, in case more than 1 blob has been detected, take also into account

  • the blob size (filter out blobs above certain threshold)
  • maybe the distance between the last detected position and the current one (filter if blob moved too fast, e.g. false positive drew attention to it on the screen edge)

solve low fps issue

we are not capturing high speed (native fps)

investigate if we need buffering or maybe another input capture than opencv, or maybe if it's simply an issue of hardware resources

goal detection

after #3

  • refactor code s.t. we can use merely signals of the ball (i.e. position, visibility, last known position) to use it in goal detection
  • try to detect goals according to position of the markers on the table or the edges of the goal (dark rectangle?)
  • count goals according to signals:
    • last position of the ball within the goal area
    • exceeded threshold time were it hasn't been detected

ball color calibration

As of now is done manually.
Come up with a solution for automatically calibrating it by holding it into the camera (maybe within a colored box?)

detect middle goals

implement support for

  • ball trajectories
  • change in velocity vectors
  • player/rod detection

subsume all in origin of shot estimation

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.