-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cba1bd
commit a29c0ca
Showing
5 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Lane Detection | ||
|
||
**Summary:** This page gives an overview over the implementation of the lane detection. | ||
|
||
- [Input](#input) | ||
- [Detection](#detection) | ||
- [OpenCV Model](#opencv-model) | ||
- [Model](#model) | ||
- [Outputs](#outputs) | ||
|
||
|
||
## Input | ||
|
||
The input is the image of the "center" camera, which is used to detect the lanes. | ||
|
||
## Detection | ||
|
||
### OpenCV Model | ||
|
||
#### Model | ||
|
||
The lane detection algorithm involves preprocessing the input image to enhance lane visibility, converting it to grayscale, and applying edge detection (Canny edge detection). | ||
Next, it isolates the region of interest, by masking the lane area using a trapezoidal shape. | ||
The algorithm then uses the Hough Line Transform to detect lines corresponding to the lanes and filters them based on their slopes and positions. Finally, it overlays the detected lanes on the original image. | ||
|
||
![OpenCV Lane Detection flow](../assets/perception/OpenCV_lane_detection_flow.png) | ||
|
||
#### Outputs | ||
|
||
The mask contains the left and right line of the lane. The mask is an array of type uint8 | ||
|
||
![OpenCV Lane Detection Mask](../assets/perception/OpenCV_Lane_Detection_Mask.png) | ||
|
||
This model also outputs an image with already drawn in lines | ||
|
||
![OpenCV Lane Detection Image](../assets/perception/OpenCV_Lane_Detection_Image.png) |