import cv2
import numpy as np

cap = cv2.VideoCapture(0)

while True:

    _, frame = cap.read()
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)


    Laplacian = cv2.Laplacian(gray ,cv2.CV_64F)
    sobalx = cv2.Sobel(frame,cv2.CV_64F,1,0,ksize=5)
    sobaly = cv2.Sobel(frame,cv2.CV_64F,0,1,ksize=5)
    edges = cv2.Canny(gray ,100,100 )

    cv2.imshow("Canny", edges)

    k = cv2.waitKey(5) & 0xFF

    if k == 27:
        break

cap.release() 
cv2.destroyAllWindows()
