Overlay
This part of the pipeline is responsible for properly depicting the output. To do this, the original image is shown together with the detected lanes, threshold, and bird's eye view.
overlay_frames(undist, thresh, transform, img_fit)
Function which combines multiple images into one pretty output image
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
undist |
cv.Mat
|
Undistorted image blended with detected lane lines |
required |
thresh |
cv.Mat
|
The thresholded binary image |
required |
transform |
cv.Mat
|
The bird's eye view of the thresholded image |
required |
img_fit |
cv.Mat
|
The bird's eye view with detected lane lines highlighted |
required |
Returns:
| Type | Description |
|---|---|
cv.Mat
|
The composed image containing |
Source code in src/pipeline/overlay.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |