Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- cap = cv2.VideoCapture(0)
- while cv2.waitKey(1) != 27:
- ret, frame = cap.read()
- canny = cv2.Canny(frame, 100, 200) #Canny edge detection
- cv2.imshow("frame", frame)
- cv2.imshow("canny", canny)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement