Book Image

Hands-On Vision and Behavior for Self-Driving Cars

By : Luca Venturi, Krishtof Korda
Book Image

Hands-On Vision and Behavior for Self-Driving Cars

By: Luca Venturi, Krishtof Korda

Overview of this book

The visual perception capabilities of a self-driving car are powered by computer vision. The work relating to self-driving cars can be broadly classified into three components - robotics, computer vision, and machine learning. This book provides existing computer vision engineers and developers with the unique opportunity to be associated with this booming field. You will learn about computer vision, deep learning, and depth perception applied to driverless cars. The book provides a structured and thorough introduction, as making a real self-driving car is a huge cross-functional effort. As you progress, you will cover relevant cases with working code, before going on to understand how to use OpenCV, TensorFlow and Keras to analyze video streaming from car cameras. Later, you will learn how to interpret and make the most of lidars (light detection and ranging) to identify obstacles and localize your position. You’ll even be able to tackle core challenges in self-driving cars such as finding lanes, detecting pedestrian and crossing lights, performing semantic segmentation, and writing a PID controller. By the end of this book, you’ll be equipped with the skills you need to write code for a self-driving car running in a driverless car simulator, and be able to tackle various challenges faced by autonomous car engineers.
Table of Contents (17 chapters)
1
Section 1: OpenCV and Sensors and Signals
5
Section 2: Improving How the Self-Driving Car Works with Deep Learning and Neural Networks
12
Section 3: Mapping and Controls

Preface

Self-driving cars will soon be among us. The improvements seen in this field have been nothing short of extraordinary. The first time I heard about self-driving cars, it was in 2010, when I tried one in the Toyota showroom in Tokyo. The ride cost around a dollar. The car was going very slowly, and it was apparently dependent on sensors embedded in the road.

Fast forward a few years, lidar and advancements in computer vision and deep learning have made that technology look primitive and unnecessarily invasive and expensive.

In the course of this book, we will use OpenCV for a variety of tasks, including pedestrian detection and lane detection; you will discover deep learning and learn how to leverage it for image classification, object detection, and semantic segmentation, using it to identify pedestrians, cars, roads, sidewalks, and crossing lights, while learning about some of the most influential neural networks.

You will get comfortable using the CARLA simulator, which you will use to control a car using behavioral cloning and a PID controller; you will learn about network protocols, sensors, cameras, and how to use lidar to map the world around you and to find your position.

But before diving into these amazing technologies, please take a moment and try to imagine the future in 20 years. What are the cars like? They can drive by themselves. But can they also fly? Are there still crossing lights? How fast, heavy, and expensive are those cars? How do we use them, and how often? What about self-driving buses and trucks?

We cannot know the future, but it is conceivable that self-driving cars, and self-driving things in general, will shape our daily lives and our cities in new and exciting ways.

Do you want to play an active role in defining this future? If so, keep reading. This book can be the first step of your journey.