Skip to content

Instantly share code, notes, and snippets.

@dbieber
dbieber / cannydemo.py
Last active May 14, 2022 10:40 — forked from burnto/gist:1266515
opencv python demonstration of grayscale, canny edge detection, and blurring.
import cv
cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE)
camera_index = 0
capture = cv.CaptureFromCAM(camera_index)
gx = gy = 1
grayscale = blur = canny = False
def repeat():