edge detection in garden [closed]

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

updated 2020-12-09 08:01:36 -0600

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 reopen merge delete

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 ( 2020-07-14 04:55:00 -0600 )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 -0600 )edit