answered Jul 14 '16
Threshold the image by colour, i.e. black colour is (0,0,0), or close; where as green is (0,255,0), or close.
Using a range you should be able to easily separate these two colours, or any other colours.
Kind regards.