Ask Your Question

Revision history [back]

I am not familiar with the Python API, but drawing a coloured rectangle in a single channel image will not work properly. Try to change the image back to RGB before drawing the rectangle.