This python program takes in a map image and outputs an image with only greenery.
REQUIREMENTS: python 2.7 opencv 2.4 installed for python And a little code reading skills to modify the code to your needs.
The main code in this repository is "green-index.py". Run the code, it'll ask you for the picture file name(Make sure that the picture file is in the same directory, There are some already tested image files here).Press enter.Wait for some time as image processing is a heavy process.
It's recommended that the picture is not greater than 300 * 300 dimensions.
If you have any doubts or want to make the program better,feel free to ping me.