Tejendhu

Untitled

Aug 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from __future__ import division
  2. import cv2
  3. import numpy as np
  4. import matplotlib.pyplot as plt
  5. cap = cv2.VideoCapture("rtsp://admin:192.168.1.64@10.4.160.207")
  6. fgbg = cv2.createBackgroundSubtractorMOG2()
  7.  
  8. if __name__ == '__main__':
  9. i =0
  10. while True:
  11.  
  12. ret, img = cap.read()
  13. cv2.imshow('original', img)
  14. if cv2.waitKey(1)>0:
  15. break
  16. cv2.destroyAllWindows()
Add Comment
Please, Sign In to add comment