All Projects → jonascarpay → visor

jonascarpay / visor

Licence: BSD-3-Clause license
Live SSBM stats from video streams

Programming Languages

haskell
3896 projects
shell
77523 projects

Visor

Visor watches a game of Melee and produces a neat graph.

More generally, it is a library for extracting information from streams of games. It is very modular, and can be (relatively) easily adapted to other games and purposes.

Visor can currently only be used on OS X.

Note that it is in early alpha, and I'm still experimenting heavily with the API. Furthermore, the data set I'm using to train the network is still relatively small and will e.g. not work with some low tier characters.

That said, contributions are very welcome!

For more information, see https://www.reddit.com/r/smashbros/comments/64ntqe/visor_live_melee_stats_for_everyone/

Quick start

Download visor from the releases page, unzip, cd into the folder, and run ./visor-app watch x y w h (see Usage section below).

Building

Visor is written in Haskell and uses the stack build system. The numerical part depends on an installation of llvm 3.7. You will probably have to run (some permutation of) the following commands:

brew install haskell-stack llvm37
ln -s /usr/local/bin/opt-3.7 /usr/local/bin/opt
ln -s /usr/local/bin/llc-3.7 /usr/local/bin/llc

Then just clone, cd into the directory, and run stack install. You might have to run stack setup at some point during the process.

Usage

You will typically want to run visor-app watch x y w h, where (x,y) is the top left corner of the screen, and w and h are its width and height (see below). Different commands can be found in app/Main.hs. By default, it will use all available processor cores. Often, this will not be what you want, especially if you have a large number of available cores. Add the option +RTS -N1 to use 1 core, or replace 1 by however many you want to use.

The following image illustrates what is meant by the x y w h coordinates. You can use the snippet tool (cmd-shift-4) to measure the coordinates and dimensions.

clarification of coordinates

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].