Closed risingblock closed 1 year ago
Got this to work by converting the image to BGR format.
bgr_image = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
Yes, the API is expecting that the color component order is BGR! This is due to following the DirectShow convention and maximizing camera application compatibility.
I didn't notice such incompatibility between OpenCV and Pillow. I will add a note on it to the README!
Thank you for your information!
Hi, I tried loading an image in Python and sending it.
It works, but the image appears very blue.
Here is my code:
Original image: https://images.unsplash.com/photo-1542500186-6edb30855637?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80
What shows up in Zoom (virtual camera): https://i.imgur.com/3ljVlsU.jpg
Any idea why? Is it related to the color table of the image? I tried converting to RGB, not sure what else I should do.
Thanks