openmv can be achieve the car lane line detection?

Hello,kwagyeman!
openmv can be achieve the car lane line detection?Had some source code to be or modified the code from example!Thanks!

Maybe this thread?

There are two ways to do this.

1: By using color tracking and following a line. I designed a lot of the stuff the OpenMV Cam in mind and optimized it for this.
2: By using the line detection feature to find lines. The code for this right now isn’t that highly optimized however and I think I can make it go faster. However, that said, finding lines allows you to basically see lanes on either side of the robot.

kwagyeman,Thanks!
As you kindly suggestion 2: By using the line detection feature to find lines. The code for this right now isn’t that highly optimized however and I think I can make it go faster. However, that said, finding lines allows you to basically see lanes on either side of the robot.
How to filter or mask much line and leave useful line,something algorithm to be reference,thank you very much!

Please see the link above. zlite did this code already.

This code with the new M7 OpenMV cam did great this weekend at the Thunderhill Self Racing Cars/DIY Robocars race (Outdoor autonomous car races at Thunderhill | Meetup). Came in 2nd, beating out nVidia TX2 cars and a lot of RaspberryPi 3s. Here’s a practice lap:

The code is OpenMVrover/bwlinefollowingRC.py at master · zlite/OpenMVrover · GitHub

The secret to the good performance was weighting the top third of the frame the highest. These were the ROIs that worked best for us:

ROIS = [ # [ROI, weight]
(0, 100, 160, 20, 0.1), # You’ll need to tweak the weights for your app
(0, 050, 160, 20, 0.3), # depending on how your robot is setup.
(0, 000, 160, 20, 0.7)
]