Skip to content

raynaldoong/Computer-Vision-Motion-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Scope

The purpose of this project is to further solidify my knowledge on video processing using Computer Vision and interactive visualisation using Bokeh.

Project Methodology

  1. Check if the camera works, when camera turns on it captures the first frame as reference color
  2. Refreshes frame every 1 ms
  3. Creates a Gray Frame and makes frame blury to make it insensitive to small changes gray
  4. Creates a Delta Frame which calculates the difference in first frame and all following frame delta
  5. Creates a Thershold Frame which determines when the difference in first frame and following frame is more than 30 using cv2.THRESH_BINARY

threshold

6. For every changes it detects, creates a green rectangular using cv2.rectangle

rectangle

7. Tracks every changes in motion from Threshold Frame, plot a barchart using Bokeh

motion

8. Press q to exit

Project Respository Files

Capture.py

A python file consisting the codes for video processing

Graph1.html

An HTML file consisting the code needed to load Bokeh Graph to browser

Plotting.py

A ptython file consisting the codes for data visualisation

Times.csv

A CSV file that tracks the start and end time when motion is detected

Project Instruction

  1. Download all the files in this repository
  2. Run Plotting.py
  3. Press q when finished

About

Motion Detector using CV2 and Bokeh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published