I'm new in the Computer Vision.
I would like to detect some kind of plants in a grass images.
Original Image
Canny Edge Detection Algorithmus
Hough Line Transform (After Edge Detection)
I have already tried:
- to remove the grass in the background with comparing th average of white pixels in a a region.
- line detection with the hough line transform algorithm (the grass adds wrong lines)
What's in your opinion the best approach to detect this plant?
Dummy solution came in my mind. Since the grass is more detailed that the plant itself:
- Apply Canny or any other edge detector.
- Pass through the image using a window (let us say 10*10). For each window:
- Compute the Density (number of white pixel if using Canny)
- store it in array
- Threshold the values in the array using Otsu algorithm. The less values represent the windows that are part of the plant.
- Remap all needed window to the original picutre.
- if a window is computed as not part of the object but in the same time it is surrouned by windows of the object, it is part of it.