직선 차선 검출 하기
import cv2 import numpy as np import matplotlib.pyplot as plt def canny(image): gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) blur = cv2.GaussianBlur(gray, (5,5), 0) canny = cv2.Canny(blur, 50, 150) return canny def display_lines(image, lines): line_image = np.zeros_like(image) if lines is not None: for line in lines: #print(line) x1, y1, x2, y2 = line.reshape(4) cv2.line(line_image, (x1, y1), ..