Cannyエッジ検出器

import cv2
import numpy as np

cap = cv2.VideoCapture(0)

while True:
    _,frame = cap.read()
    edges = cv2.Canny(frame,100,200)
    cv2.imshow('canny',edges)
    key = cv2.waitKey(1) & 0xff
    if key == ord('q'):
        break