Sobelフィルタ

https://qiita.com/shim0mura/items/3ab2a67c78eafd456c32

import cv2
from matplotlib import pyplot as plt
cap = cv2.VideoCapture(0)
while True:
    _,frame = cap.read()
    sobely5 = cv2.Sobel(frame, cv2.CV_32F, 0, 1, ksize=5)
    cv2.imshow('sobely5',sobely5)
    key = cv2.waitKey(1) & 0xff
    if key == ord('q'):
        break