Lines Matching refs:cv2
7 import cv2
17 src = cv2.imread(fn)
18 dst = cv2.Canny(src, 50, 200)
19 cdst = cv2.cvtColor(dst, cv2.COLOR_GRAY2BGR)
22 lines = cv2.HoughLinesP(dst, 1, math.pi/180.0, 40, np.array([]), 50, 10)
25 …cv2.line(cdst, (lines[i][0][0], lines[i][0][1]), (lines[i][0][2], lines[i][0][3]), (0, 0, 255), 3,…
28 lines = cv2.HoughLines(dst, 1, math.pi/180.0, 50, np.array([]), 0, 0)
38 cv2.line(cdst, pt1, pt2, (0, 0, 255), 3, cv2.LINE_AA)
41 cv2.imshow("source", src)
42 cv2.imshow("detected lines", cdst)
43 cv2.waitKey(0)