当前位置: 首页 > news >正文

中山网站免费制作建设企业网站有哪些

中山网站免费制作,建设企业网站有哪些,图片瀑布流代码wordpress,设计公司网站源码描述 python实现简单的车道线检测#xff0c;本文章将介绍两种简单的方法 颜色阈值区域掩模canny边缘检测霍夫变换 这两种方法都能实现简单的车道线检测demo#xff0c;注意仅仅是demo 下面的图片是用到的测试图片 方法1#xff1a;颜色阈值#xff08;Color Selection…描述 python实现简单的车道线检测本文章将介绍两种简单的方法 颜色阈值区域掩模canny边缘检测霍夫变换 这两种方法都能实现简单的车道线检测demo注意仅仅是demo 下面的图片是用到的测试图片 方法1颜色阈值Color Selection 区域掩模Region Masking 我们可以仅仅通过设置一些RGB通道阈值来提取车道线。 以下的代码设置了RGB通道阈值为220大于220的像素将设置为黑色这样可以将测试图片中的车道线提取出来 效果如下 我们发现符合阈值的像素既包括了车道线也包含了其他非车道线部分。 显然一个成熟的自动驾驶感知算法是不可能使用这种方法的。仅仅依靠颜色既不科学也不鲁棒。 有一种改进思路是利用图像掩模的方法 假设拍摄图像的前置摄像头安装在汽车上的固定位置这样车道线将始终出现在图像的相同区域中。我们将设置了一个区域认为车道线处于该区域内。我们设置了一个三角形的区域原则上你可以使用其他形状 如果两个方法结合一下我们就可以得到这样的效果 python代码如下 import matplotlib.pyplot as pltimport matplotlib.image as mpimgimport numpy as np# Read in the imageimage mpimg.imread(test.jpg)# Grab the x and y sizes and make two copies of the image# With one copy well extract only the pixels that meet our selection,# then well paint those pixels red in the original image to see our selection# overlaid on the original.ysize image.shape[0]xsize image.shape[1]color_select np.copy(image)line_image np.copy(image)# Define our color criteriared_threshold 220green_threshold 220blue_threshold 220rgb_threshold [red_threshold, green_threshold, blue_threshold]# Define a triangle region of interest (Note: if you run this code,left_bottom [0, ysize-1]right_bottom [xsize-1, ysize-1]apex [650, 400]fit_left np.polyfit((left_bottom[0], apex[0]), (left_bottom[1], apex[1]), 1)fit_right np.polyfit((right_bottom[0], apex[0]), (right_bottom[1], apex[1]), 1)fit_bottom np.polyfit((left_bottom[0], right_bottom[0]), (left_bottom[1], right_bottom[1]), 1)# Mask pixels below the thresholdcolor_thresholds (image[:,:,0] lt; rgb_threshold[0]) | \ (image[:,:,1] lt; rgb_threshold[1]) | \ (image[:,:,2] lt; rgb_threshold[2])# Find the region inside the linesXX, YY np.meshgrid(np.arange(0, xsize), np.arange(0, ysize))region_thresholds (YY gt; (XX*fit_left[0] fit_left[1])) amp; \ (YY gt; (XX*fit_right[0] fit_right[1])) amp; \ (YY lt; (XX*fit_bottom[0] fit_bottom[1]))# Mask color selectioncolor_select[color_thresholds] [0,0,0]# Find where image is both colored right and in the regionline_image[~color_thresholds amp; region_thresholds] [255,0,0]# Display our two output imagesplt.imshow(color_select)plt.imshow(line_image)# uncomment if plot does not displayplt.show() 点击python实现简单的车道线检测 - 古月居 可查看全文
http://www.zqtcl.cn/news/752716/

相关文章:

  • 专业营销的网站建设公司哪家好专门做二手书的网站
  • 建新网站开发流程图电子商务网站开发综合实训报告
  • 临汾网站建设销售长沙网站建设1681989
  • 最近国内外重大新闻事件贺贵江seo教程
  • 网站开发源码网站运营建设方案
  • 网站建设公司 跨界鱼科技专业简述网站的制作步骤
  • 手机网站cms网站优化推广哪家好
  • 网站被k换域名qq空间 wordpress
  • 网站模板种类昆明cms建站模板
  • wordpress em企业网站做seo的优势
  • 设计师做私单网站全球最大的电商平台
  • 外贸联系网站wordpress 优惠券 插件
  • 公司网站开发费用兴田德润官方网站深圳百度快照优化
  • 做网站需要备案么行业网站策划
  • 去年做啥网站能致富周口seo推广
  • 主体负责人电话修改 网站备案什么样算网站需要备案
  • 网站建站免费空间外贸网站建设与优化
  • 网站极简设计建立网站基本知识
  • 网站建设管理标准wordpress rss采集
  • 乐清网站建设费用装修房子的app软件哪个好
  • 专业网站搭建运营工业网站素材
  • 建网站要会什么wordpress电影下载站
  • 济南设计网站的公司西安模板网站建设
  • 网站搜索功能如何实现网络培训学习心得体会
  • 网站设计方案书ppt网站展示型推广
  • 中国建设注册管理中心网站首页大连地区建设网站
  • 广州致峰网站建设藁城网络推广
  • 怎么做免费个人网站wordpress dux 5.3
  • 手机触屏版网站网站功能介绍
  • 商场设计案例青岛百度快速排名优化