Skip to content
Algorithm that detects moving objects in video feeds
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
compilation.mp4
motion_detection.py
moving_car.gif
requirements.txt

README.md

Motion-Detection

Algorithm that detects moving objects in video feeds.

Dependencies

  • Numpy
  • OpenCV
  • Imutils
  • Steps to install

    1. Clone repository on your local machine

    2. Install the necessary dependencies

    pip3 install -r requirements.txt
    

    3. Run using the command

    python3 motion_detection.py
    

    Note: You can change the video displayed by adding your desired video to the same folder and changing the file name on line 6 as shown below.

    capture = cv2.VideoCapture('YOUR__FILE_NAME')
    

    Sample outputs:

    https://gyazo.com/efa1b79a0086158c03884bb4029df9b0

    https://gyazo.com/efa1b79a0086158c03884bb4029df9b0

    https://gyazo.com/f416270823f87f6d0f47d003e24b298e

    You can’t perform that action at this time.