Skip to content

Instantly share code, notes, and snippets.

View Geeky-star's full-sized avatar
💭
Making myself better and better daily

Nimratpreet Kaur Geeky-star

💭
Making myself better and better daily
View GitHub Profile
@pknowledge
pknowledge / basic_motion_detection_opencv_python.py
Created June 25, 2019 18:11
Motion Detection and Tracking Using Opencv Contours
import cv2
import numpy as np
cap = cv2.VideoCapture('vtest.avi')
frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT))
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')