GithubHelp home page GithubHelp logo

allanalderson / scorpy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34.24 MB

Using a raspberry pi, python and pygame, I use this code to generate a score overlay (green chroma-key). It displays a timer, titles and scores

Python 100.00%
chroma-key scores score-overlay raspberry-pi pygame timer chromakey sports countdown

scorpy's Introduction

Scorpy

Using a raspberry pi, python and pygame, I use this code to generate a score overlay (green chroma-key) for sporting events (football). It displays a timer, titles and scores and user images.

Make sure the raspberry-pi has the screen resolution set to 1920x1080

NOTE: The Raspberry Pi doesn't actually do the keying, it just generates a score/timer overlay for your vision mixer's keyer.

(see demo images.jpg ... With 29 miutes, 36 seconds, Magpies are in front 13 to 7)


Keyboard operation:

curser (up, down, left, right): Move/adjust scores.

tab = Set the team-names and timer.

spacebar = On-air / Off-air toggle.

t = Titles.

h = Halftime Score.

f = Fulltime Score.

r = Replay logo.

c = Clock (show/hide).

'+' = Clock run.

'-' = Clock stop.

< > = Adjust countdown seconds (or minutes)

v = Variation to current screen.

b = Bars (but no tone)

w = watermark.png (show/hide)

? = help screen.

3 messages can be displayed.

4~9 User images (e.g: image4.png @ 1920x1080).

0 = Kill all user images.

If the Raspberry Pi is configured to mount an external USB drive to '../../mnt/volume/', nine user images will be read from a FAT32 format USB drive during power-up. User Image filenames should be this format: image1.png and be 1920 x 1080 pixels and contain an alpha (transparency) channel.

Scorpy will also attempt to load 1 watermark image from the same drive. It's filename should be this format: watermark.png and should contain an alpha (transparency) channel. The watermark filesize should be about 250 x 100 pixels.

The folder 'scorpy_resources' contains fonts and images that Scorpy needs. Regardless of version, this zipped file will always contain all scorpy resources.

scorpy's People

Contributors

allanalderson avatar

Watchers

 avatar  avatar

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.