GithubHelp home page GithubHelp logo

avgframe's Introduction

Average Frame

Produce one frame from a sequence of frames such that resulting frame represents an average of a sequence.

Algorithm

Where X is a set of frames, x is a particular frame.

Usage

From terminal:

python3 path/to/video/file.mp4 frames_to_skip frames_to_grab

From REPL:

from src import averanger as a

# Path to your video file
path = 'data/video.mp4'

# Frames to skip
skip = 2000

# Frames to grab
grab = 25

a.averengify(path, skip, grab)

Outcomes

There is no one unique recipe besides basic video analysis. General rules are the following:

  • The more video is centered on some object and more this object 'still' the bigger grab value can be taken

  • The more video intense (change of the background, absence of central or 'still' object) the smaller grab value should be

170 Frames, Still

170 frames

5 frames, Action

5 frames

10 frames, Action

10 frames

25 frames, Action

25 frames

50 frames, Action

50 frames

avgframe's People

Contributors

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