I have an image of a road.
I applied color thresholding to it and got a mask of yellow and white markers (cv2.inRange
)
Then I applied got contours of specific area on the mask to remove the noise (cv2.findContours
)
I have obtained good mask which has whites as lanes and black everywhere else.
However, I cannot get the three lanes into separate arrays - I tried watershed algorithm, it gives me the boundaries of the lanes, however doesn't separate them into different arrays.
My desired result is to have three separate arrays, each containing all the pixel numbers of each lane.
I have warped the image as well.
the below screenshot is the bitwise and of mask and original warped image.