there you go with a snippet. I hope I understood. If not, let me know.
I basically loaded an image with lots of green with OpenCv, saved it as NPY, loaded it as NumpyArray. Then created a green mask and bitwise it so I can extract all the green from it.