-
车道线通过霍夫直线检测方法实现检测,即car_line
资源介绍
基于霍夫直线检测
使用方法:
#实例化:
import car_lines
import cv2
app = car_lines . Car_lines ()
#读取图片
img = cv2 . imread ( img_path )
#设定车道线颜色阈值/默认白、黄色
white_lower = [ 200 , 200 , 200 ]
white_upper = [ 255 , 255 , 255 ]
yellow_lower = [ 0 , 110 , 110 ]
yellow_upper = [ 100 , 255 , 255 ]
colors = [[ white_lower , white_upper ],[ yellow_lower , yellow_upper ]]
#调用方法
result , data = app . search ( img , colors = co