Skip to content

Instantly share code, notes, and snippets.

View sospartan's full-sized avatar

sospartan zheng sospartan

View GitHub Profile
import cv2
import numpy as np
canny = rho = threshold = minLen = maxGap = None
def draw():
lines = cv2.HoughLinesP(canny, rho, np.pi / 180,
threshold, None, minLen, maxGap)
dst = cv2.cvtColor(canny, cv2.COLOR_GRAY2BGR)