https://qiita.com/shim0mura/items/3ab2a67c78eafd456c32
import cv2 from matplotlib import pyplot as plt cap = cv2.VideoCapture(0) while True: _,frame = cap.read() lap = cv2.Laplacian(frame, cv2.CV_32F, ksize=3) cv2.imshow('laplacian',lap) key = cv2.waitKey(1) & 0xff if key == ord('q'): break