Coder Social home page Coder Social logo

5l1v3r1 / video-analysis-for-surveillance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaijanyani/video-analysis-for-surveillance

0.0 1.0 0.0 171.88 MB

Analyzing CCTV videos to find interesting events

License: MIT License

Python 100.00%

video-analysis-for-surveillance's Introduction

Video-Analysis-for-Surveillance

Analyzing CCTV videos to find timestamps of interesting events using deep learning

Description

Performed this analysis using image/video processing and deep learning algorithms.

The Project consist of three steps :

1.) Extracting frames from a video at regular intervals
2.) Detecting change in every two consecutive frames in a sequence
3.) Reporting timestamp for every change

Prerequisites

Software

  • Python-opencv
  • Tensorflow v 1.0 or later
  • Python 3.6.0 |Anaconda 4.3.0 (64-bit)|

Tested on Ubuntu 16.04 LTS amd64 xenial image built on 2017-09-19 8-core CPU

Installation

  • Simply clone the repository
  • Paste your video/videos in "videos" folder
  • Done

Running

  • Simply run this command from root directory.
python extract.py ./videos -o ./images --skip 75

  • NOTE : Video should be present in "videos" folder
    : Frames will be extracted in "images" folder
    : --skip = 3*FPS
    : The provided video "05_05.mp4" has 25FPS , so skip = 75

Screenshots

untitled

untitled2

untitled3

Output

start time : 0:01:39
end time : 0:02:09


start time : 0:03:45
end time : 0:03:48


start time : 0:04:27
end time : 0:04:33


start time : 0:06:57
end time : 0:07:06


start time : 0:07:39
end time : 0:08:15


start time : 0:08:18
end time : 0:08:18


start time : 0:10:45
end time : 0:10:48


start time : 0:11:36
end time : 0:11:39

Author

Jai Janyani

Licence

This project is licensed under the MIT License - see the LICENSE.md file for detail

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.