Code Monkey home page Code Monkey logo

coding-video-viewer's Introduction

Coding video viewer

Sometimes you have a video of someone coding and you'd like to watch it with a bit more structure. Perhaps they're test-driving and you'd like to know when the red and green steps are. Or some other things.

This is an experimental project where I try to see what can be extracted from such videos. The long-term dream would be to totally reconstruct the codebase from a video. Theoretically it's possible, however it may be a fair chunk of work.

Getting running

Clone. Then:

; npm install
; node interpret.js path/to/video.mp4 path/to/output.json

That will process videos.

To run a basic server:

cd docs
./serve.sh

Try your own video

Put your video at docs/data/snippet.mp4. Then run:

; npm install
; node interpret.js docs/data/snippet.mp4 docs/data/snippet.json

Then fire up the server as above and see how it works.

Note that this is only tuned into RSpec test runs at the moment.

You're likely to encounter some problems. The video I've used uses the font IBM Plex Mono which is quite friendly for OCR. If you use the default Mac VS Code font (Menlo) you will probably encounter some problems. I have made some good progress training a version of the Tesseract OCR program to handle Menlo, and I'm happy to share that work later on. This video is a good starting point.

coding-video-viewer's People

Contributors

neoeno avatar

Stargazers

 avatar  avatar  avatar  avatar  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.