umigv / MkII

0 stars 0 forks source link

Edge detection #48

Closed apvarghese19 closed 2 years ago

apvarghese19 commented 2 years ago

Find best implementation of detecting lanes/potholes using edge detection

dswelch commented 2 years ago

Used https://www.kdnuggets.com/2017/07/road-lane-line-detection-using-computer-vision-models.html in order to use Canny edge detection on a single frame. We then started trying to apply this continuously to a svo file/video. Edge detection is in ADSDetection.py.

mmiracky commented 2 years ago

Tried using a white mask before and after grayscaling an image to get only white lines. Issue: Tuning the threshold manually is inconsistent. We ended up dropping this idea.

ryanhou28 commented 2 years ago

Tested techniques from https://medium.com/analytics-vidhya/building-a-lane-detection-system-f7a727c6694 to find edges and lines after manually isolating the area of the image that contains the lanes. The perspective transform and line detection ended up working quite well.

mmiracky commented 2 years ago

Tried using https://data-flair.training/blogs/road-lane-line-detection/ to detect white/yellow lines. There were lots of errors that even people in the comments were talking about being unable to fix. The main error was that the code tries to loop over a None. There were also other errors in the code like using actual greek letters instead of alphanumeric.

dswelch commented 2 years ago

We were able to apply the edge detection and hough transform from ADSDetection.py onto a video, and then using VideoWriter from python we could export that video into an avi file in order to see it as a video.

ryanhou28 commented 2 years ago

Finished a working implementation of circle/blob detection.

ryanhou28 commented 2 years ago

Worked on fixing blob detection for perspective-transformed images. Used Gaussian blurring and color segmentation to get better shapes for detection. Also tried various parameters for the blob detector. Still need to find a way to detect blobs by area.