# Revision history [back]

### edge detection in garden

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)

 2 retagged sturkmen 6772 ●3 ●48 ●79 https://github.com/stu...

### edge detection in garden

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)