Code Monkey home page Code Monkey logo

footage-gap-detector's Introduction

Footage Gap Detector for Dashcams

Dashcams can sometimes have a few seconds of gap between recordings when ending the current file and starting the next.

This is bad because it's possible for an emergency event during your drive to occur during one of those gaps. It's best to detect that your dashcam suffers from such recording gaps and address it before it matters most.

So, here's a quick tool to detect the gaps. I wrote more about it here.

Example command:

detect.py --dir "/memory_card/recordings"

Can output something like:

Detected 6408ms gap between ".../2017_0114_141750_008.MP4" and ".../2017_0114_141805_009.MP4"
Detected 3520ms gap between ".../2017_0114_141805_009.MP4" and ".../2017_0114_141816_010.MP4"
Detected 1000ms gap between ".../2017_0116_121056_017.MP4" and ".../2017_0116_121557_018.MP4"
Detected 1000ms gap between ".../2017_0205_153459_307.MP4" and ".../2017_0205_153959_308.MP4"

How to Install

Every platform is different so these instructions are only in general terms.

  1. Download detector/detect.py and requirements.txt.
    • Or install git and git clone this repository.
  2. Use a Python virtual environment with pip to set up the dependency for this tool.
    • Dependency installation command is typically: python3 -m pip install -r requirements.txt

footage-gap-detector's People

Contributors

nekorevend avatar

Stargazers

Deniz Kalaslioglu avatar Shawn Charles 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.