edge detection in garden [closed]

asked Jul 14 '0

updated Dec 9 '0

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)

Preview: (hide)

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-16 17:42:08.324255

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 (Jul 14 '0)edit

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

werther gravatar imagewerther (Jul 14 '0)edit