Reputation: 908
I want to detect crop areas from satellite images.
If we copy any image of google maps that contains a farm land, you can easily see the divisions, but using OpenCV is not so easy for me.
First, I convert the image from RGB to gray and apply a Gaussian filter.
When I apply a threshold to the image, I get many irregularities that make it difficult to separate the different areas.
I had thought about clicking somewhere and use some flood algorithm to detect at least the edges of the terrain clicked. Another (more advanced) option is to use CNN but I still do not have much experience in that and I would like to start with the basics.
Any suggestions?
Upvotes: 1
Views: 2932
Reputation: 1027
Consider,
1) Breaking the image up into many small images
2) Increasing the strength of your gaussian filter to remove noise
3) Using hough line detector to get edges from the binary image (black and white)
You will need to get the image as clean as possible. By clean I mean, make sure the edges are very clean with minimal noise on the inside of the fields.
Lastly I would suggest using an edge detector with a hough line detector. Look into canny edge detection.
Upvotes: 1