GithubHelp home page GithubHelp logo
Downsmash
What Downsmash does

Downsmash is a parser for Super Smash Bros. Melee. It extracts data from raw video feed.

Installation

This should work on Windows, since opencv-python packages its own OpenCV. I cannot guarantee this, though, and I cannot help Windows users with configuration.

$ git clone https://github.com/downsmash/downsmash
$ pip install -r requirements.txt

You will also probably want to use a video downloader such as yt-dlp.

Quickstart

Download a video containing one Melee set to melee_vod.mp4, then:

from downsmash.watcher import watch
watch('melee_vod.mp4')

watch will send back a JSON object. Let's use this set from Low Tide City.

{
  "segments": [
    [ 16.7109375, 222.734375 ],
    [ 249.171875, 472.65625 ],
    [ 504.171875, 607.65625 ]
  ],
  "threshold": 0.3982072589975415,
  "view": {
    "ports": [
      {
        "height": 96,
        "left": 102,
        "top": 255,
        "width": 119
      },
      null,
      null,
      {
        "height": 96,
        "left": 403,
        "top": 255,
        "width": 130
      }
    ],
    "scale": 0.7853535353535352,
    "screen": {
      "height": 322.8675645342311,
      "left": 102.61111111111106,
      "top": 32.84343434343428,
      "width": 430.4900860456415
    }
  }
}

In this case, segments contains the timestamps of the start and end of the three games in the set, and view contains the scale and location of the game feed, as well as the ports in use and their locations.

downsmash's Projects

core icon core

Files common to most Downsmash projects

corpus icon corpus

Corpus generator for Downsmash, thanks to Project Slippi

titles icon titles

YouTube scraper and title classifier for Downsmash

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.