First time here? Check out the FAQ!
answered 2016-07-14 09:53:56 -0600
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.