Closed wkaisertexas closed 1 year ago
When you save to a PNG file using sct.shot()
, do you see the color issue too?
Yes, the colors are also faded there. It is just far more noticeable with the hall of mirrors effect created by taking multiple screenshots
I should get a Mac soon, until then I can't do anything.
Looking back, I think it is an HDR 10 bit versus SDR 8 bit issue. Somehow, the color space is getting converted, so when converting back the colors do not look quite right.
I found something similar with Adobe photoshop and screenshots getting washed out.
Might be worth taking a look at.
This happens because you use OpenCV, you need to convert the image color before showing it on the screen
cv2.cvtColor(np.array(screenshot, cv2.COLOR_RGB2BGR)
That is definitely not the issue. It is an issue with the P3 Color Space being converted down to Standard Dynamic Range (SDR) which causes colors to become compressed.
General information:
Description of the warning/error
Colors get washed out when taking monitor captures
Full message
Running the numpy / opencv sample code from the documentation and noticed that the color gets extremely washed out. The macbook I am running this on has a 10-bit panel. Perhaps some of this information could be getting lost, but I am not quite sure.
Code Used