The library is used to draw lane lines in the adas library and each lane line is represented by a number type representing the category and a vector<Point> used to draw the lane line. In the test code, color map is used. Different types of lane lines are represented by different colors. The point is stored in the container vector, and the polygon interface cv::polylines() of OpenCv is used to draw the lane line. The following image show the result of road line detection.
Figure 1. Road Line Detection Example
The following table shows the road line detection model supported by the
AI Library.
No | Model Name | Framework |
---|---|---|
1 | vpgnet_pruned_0_99 | Caffe |
Note: The input of the image is
fixed at 480x640 and images of other sizes need to be resized.