Coder Social home page Coder Social logo

countdown's Introduction

Countdown Build Status

What

This is a system that can watch Countdown (if fed the video stream for it) and then decode the letters that are being offered, then tweet the responce in speed. The system runs at around 100FPS on a i5 Laptop far greater then the input rate of 25 FPS from TV.

Contained inside

Inside is the source code for the MJPEG decoder that is to be used for the input. You can feed the system a flv by using the following command in the terminal.

ffmpeg.exe -i ../countdowna.flv -acodec none -vcodec mjpeg -f mjpeg - | ./AutoCountdown/bin/Debug/AutoCountdown.exe

This will take the input FLV (In the real system it is piped into ffmpeg) and have ffmpeg output a MJPEG stream.

Inside of the program is a MJPEG decoder for this use.

How

Input

This system uses FFMPEG for its major heavy lifting. The system takes MJPEG in.

Detection

The system looks for frames like the following: Target

Each frame is evaluated for being a frame with the letters in by using the two solid parts as shown: RedTarget1

Extraction

If the frame passes that test then it scanned to find the 'box' edges: RedTarget2

The 'box' is then processed to find the bright parts (the text) then outputted to a PNG file

RedTarget3

This file is then passed to tesseract in order to do OCR, the result is then read out.

Twpost

Twitter posting

Once the winning words are calculated, Tinytwitter is used to post the tweet. (Patch for API 1.1 is coming.)

Requirements

Right now there are a few hardcoded paths to things like tesseract. While the system should run under mono, the paths for tesseract need to be fixed for that to happen.

countdown's People

Contributors

ben-playgen avatar benjojo avatar

Watchers

 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.