Git Product home page Git Product logo

environment-perception-for-self-driving-cars's Introduction

Environment-Perception-For-Self-Driving-Cars

Visual Perception Stack For Self-Driving Cars

General overview and goals of the project

  • Using the output of semantic segmentation neural networks to implement drivable space estimation in 3D.
  • Using the output of semantic segmentation neural networks to implement lane estimation.
  • Using the output of semantic segmentation to filter errors in the output of 2D object detectors.
  • Using the filtered 2D object detection results to determine how far obstacles are from the self-driving car.

Some implementation details and tricks

1

  • All the required 3D estimation will be performed in the camera coordinate frame
  • The camera as a sensor is usually oriented with its y-axis pointing downward.
  • The only thing you will need to be careful about, is the sign of the height value of pixels.
  • Points higher than the camera will have a negative height, while points lower than the camera will have a positive height.

2

3

  • To filter out the horizontal lines, we can rely on the slope of the estimated lines.
  • Horizontal lines and images tend to have a slope very close to zero. However, we also want to remove heavily slanted lines.
  • As such, a threshold is introduced as a lower limit of allowed slopes for the output of this filtering step. The exact value of this threshold needs to be determined empirically, try values between 0.1 and 0.3 for best results.

4

  • A simple clustering algorithm would be to first choose a cluster center at random from the remaining filter lines, then add to the cluster any lines that have a similar slope or intercept to the cluster line.
  • A line is considered close to the cluster center if the difference between its slope and slope of the cluster center is less than a specific slope threshold, and the distance between its intercept and the intercept of the cluster center is less than a specific intercept threshold as well.
  • The slope difference threshold is usually chosen to be a maximum of 0.3, while the intercept difference threshold is defined in pixels, and is usually chosen between 20 and 50 pixels.

5

6

7

  • The output of object detection is usually reliable. But for this assessment, we are given a high recall low precision detector that detects all objects in the scene, but also provides some false positives.
  • We are required to use the output from semantic segmentation to eliminate these false positives before estimating the distance to the obstacles.
  • The results should be bounding boxes that reliably contain obstacles. To perform this filtering, we will need to use the semantic segmentation output to count the number of pixels in the bounding box that have the same category as the classification output from the 2D object detector.
  • The trick here, is that this number will depend on the size of the bounding box. We will need to normalize the pixel count by the area of the bounding box before attempting to filter out the detections with a threshold. The final normalized count is equivalent to computing the area inside the bounding box occupied by pixels belonging to the correct category.

Final Notes:

This is the final assignment project from Visual Perception for Self-Driving Cars course of Self-Driving Cars Specialization by University of Toronto.

environment-perception-for-self-driving-cars's People

Contributors

enginbozkurt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.