Lines Matching full:edge
4 This sample demonstrates Canny edge detection.
7 edge.py [<video source>]
9 Trackbars control edge thresholds.
33 cv2.namedWindow('edge')
34 cv2.createTrackbar('thrs1', 'edge', 2000, 5000, nothing)
35 cv2.createTrackbar('thrs2', 'edge', 4000, 5000, nothing)
41 thrs1 = cv2.getTrackbarPos('thrs1', 'edge')
42 thrs2 = cv2.getTrackbarPos('thrs2', 'edge')
43 edge = cv2.Canny(gray, thrs1, thrs2, apertureSize=5)
46 vis[edge != 0] = (0, 255, 0)
47 cv2.imshow('edge', vis)