Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import division
- import cv2
- import numpy as np
- import matplotlib.pyplot as plt
- cap = cv2.VideoCapture("rtsp://admin:192.168.1.64@10.4.160.207")
- fgbg = cv2.createBackgroundSubtractorMOG2()
- if __name__ == '__main__':
- i =0
- while True:
- ret, img = cap.read()
- cv2.imshow('original', img)
- if cv2.waitKey(1)>0:
- break
- cv2.destroyAllWindows()
Add Comment
Please, Sign In to add comment