edge detection in garden

asked 2020-07-14 04:07:43 -0500

How can i filter this image with cv2 so that i have just the gras in my garden. So basically i need to seperate it where the red line is.

garden image

Ive tried a code that i found at a driving lane detection system, but unfortunately its not working good for gras.

gray = cv2.cvtColor(gras_image, cv2.COLOR_RGB2GRAY)

blur = cv2.GaussianBlur(gray, (5,5), 0)

canny = cv2.Canny(blur, 50, 200)

edit retag flag offensive close merge delete

Comments

you probably should not throw away the color information, also this looks more like a segmentation problem, than an edge detection one

berak gravatar imageberak ( 2020-07-14 04:55:00 -0500 )edit

So i probably should lower the resolution and add an filter so the gras wont have that much noise?

werther gravatar imagewerther ( 2020-07-14 05:01:58 -0500 )edit