CarND Project - Advanced Lane Finding

(Udacity Learning Note: CarND-Term1 Project 4)

Camera Calibration & Distortion Correction

Two Types of Distortion

  • Radial Distortion
  • Tangential Distortion

Using OpenCV

Example

  • Finding chessboard corners (for an 8x6 board):
ret, corners = cv2.findChessboardCorners(gray, (8,6), None)
  • Drawing detected corners on an image:
img = cv2.drawChessboardCorners(img, (8,6), corners, ret)
  • Camera calibration, given object points, image points, and the shape of the grayscale image:
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, gray.shape[:-1], None, None)
  • Undistorting a test image:
dst = cv2.undistort(img, mtx, dist, None, mtx)

Perspective Transform

Commonly Used View

  • Front-facing View (Normal View)
  • Top-down View (Bird-eye View)

Why?

  • Because ultimately we want to measure the curvature of the lines, and to do that, we need to transform to a top-down view.

Apply Perpective Transform using OpenCV

  • Compute the perspective transform, M, given source and destination points:
  M = cv2.getPerspectiveTransform(src, dst)
  • Compute the inverse perspective transform:
  Minv = cv2.getPerspectiveTransform(dst, src)
  • Warp an image using the perspective transform, M: (warp v. 扭曲)
  warped = cv2.warpPerspective(img, M, img_size, flags=cv2.INTER_LINEAR)

Gradient Threshold

时间: 2024-10-08 04:36:55

CarND Project - Advanced Lane Finding的相关文章

Team Foundation Server 2013 with Update 3 Install LOG

[Info   @10:14:58.155] ====================================================================[Info   @10:14:58.163] Team Foundation Server Administration Log[Info   @10:14:58.175] Version  : 12.0.30723.0[Info   @10:14:58.175] DateTime : 10/03/2014 18:1

Get Started with the A* Pathfinding Project

本系列教程为A*寻路插件的官方教程翻译,本来我想找现成的文档貌似没有无奈之下只好自行翻译顺便造福群众. A*插件大概的功能就是A到B点之间最佳的路径,读完本篇教程你能学到在项目中配置A*并且写一个简单的能规避障碍物的AI. Pathfinding is all about finding the best path between point A and B. This is what the A* Pathfinding Project does, in this tutorial you w

20 Useful Javascript Frameworks for your Upcoming Project (转)

20 Useful Javascript Frameworks for your Upcoming Project Posted in Resources By ashish On May 14, 2015 Advanced JavaScript programming can often be very difficult and time-consuming to work with. To deal with these difficulties, a lot of JavaScript

Android Tools Project Site

Android Tools Project Site Search this site   Projects Overview Screenshots Release Status Roadmap Download Preview Channel Recent Changes Technical docs New Build System Known Issues Tips Build Overview Contributing Feedback Technical docs‎ > ‎New B

模块化手机project ara之我见

组装电脑,已被大部分人所熟知,只是像玩具一样组装手机,应该还仅仅是停留在想象.谷歌Project Ara将这一想象一步一步拉进现实,她希望提供一块框架,使用者能够自由地替换摄像头.显示屏.处理器.电池模块,同一时候能够随意的加入你想要的模块,一块健康检測仪,一个便携的智能音箱. (图1来自dailyTech) Project Ara源于摩托罗拉,被谷歌收购后在ATAP(Advanced Technology and Projects,高级技术与项目)部门得以继续.所谓的模块化组装,即是最初仅仅有

Most Advanced Robotics Simulation Software Overview

Creating a complete virtual model by simulating components and control programs can lead to simplifying the construction process of a robot and can reduce costs of a project. The good part is that most applications used in simulation can be transferr

Advanced installed基础教程(一)

Advanced installed基础教程(一) Advanced installed功能非常强大,而且使用很简单,但是在网上看到的文档基本都是版本较低,且有很多错误给人误导:本文参考官方文档,给自己备忘,也希望给初学者一个入门教程.下载试用版安装,非常简单,略过. 本教程带你一步一步从头开始创建一个简单的Advanced installed项目,最后生成一个MSI文件包,适合么有任何经验的新手来学习Advanced installed. 假设你想创建一个安装包安装一个简单的文本文件,是你写的

Crystal Clear Applied: The Seven Properties of Running an Agile Project (转载)

作者Alistair Cockburn, Crystal Clear的7个成功要素,写得挺好. 敏捷方法的关注点,大家可以参考,太激动所以转载了. 原文:http://www.informit.com/articles/article.aspx?p=345009 Property 1. Frequent Delivery The single most important property of any project, large or small, agile or not, is that

把disable maven nature后的项目,恢复菜单呈现出来(Convert to Maven Project)

把disable maven nature后的项目,恢复菜单呈现出来(Convert to Maven Project) 有的时候需求把disable maven nature后的项目,再转换为maven项目, 这时就需要菜单:conver to maven project 但是默认这个菜单是不呈现的,你找不到,这就需要做个配置: Preferences > General > Capabilities > Advanced > MyEclipse Standard Tools &