I want to develop a program for detecting grass. It should be able to identify the input image as 'grass' or as 'obstacle'.
It should output as 'grass' if there is only grass in the input image, and if there is any object placed on grass, then it should output as 'obstacle'. Similarly, if there is no grass at all (i.e. concrete etc) or there is boundary between grass and concrete, it should output as 'obstacle'
Please guide me what approach to use for such kind of grass detection. Do I need a learning algorithm for this purpose or a non-learning algorithm (like features detection etc.) would serve the purpose. In both the cases, what would be the appropriate opencv functions to implement them.
Thanks.