Hi Joachim,
if you managed to extract a portion of your image, then you should have the flattened image data as 1D array.
If you calculate the mean value of this array you see that it changes when the image changes color.
This is not of course an accurate method, but you can easily detect if the color changes from green to red.
Good luck,
Alberto