Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import cv2
  2. cap = cv2.VideoCapture(0)
  3. while cv2.waitKey(1) != 27:
  4.     ret, frame = cap.read()
  5.     canny = cv2.Canny(frame, 100, 200) #Canny edge detection       
  6.     cv2.imshow("frame", frame)
  7.     cv2.imshow("canny", canny)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement