Skip to content

Instantly share code, notes, and snippets.

View UlrichvonHutten's full-sized avatar

UlrichvonHutten UlrichvonHutten

View GitHub Profile
@UlrichvonHutten
UlrichvonHutten / bg_subtractor.py
Created January 6, 2019 00:13 — forked from harshad-tal/bg_subtractor.py
Background Subtraction from video using OpenCV and Python
import numpy as np
import cv2
file_path = "vid.mp4"
cap = cv2.VideoCapture(file_path)
first_iter = True
result = None
while True:
ret, frame = cap.read()
@harshad-tal
harshad-tal / bg_subtractor.py
Created March 10, 2017 09:23
Background Subtraction from video using OpenCV and Python
import numpy as np
import cv2
file_path = "vid.mp4"
cap = cv2.VideoCapture(file_path)
first_iter = True
result = None
while True:
ret, frame = cap.read()