Hi!
I’ve been quite confused for a while about this for a while, but are the images retrieved from the camera RGBA or BGRA by default? I know the documentation says RGBA is returned, but for example if I am trying show the image with opencv (which asks for BGR image) I get something quite weird.
If I convert the image like the following, the colors are completely messed up.
cam.retrieve_image(mat, sl.VIEW.LEFT)
data = mat.get_data()
data = cv2.cvtColor(data, cv2.COLOR_RGBA2BGR)
cv2.imshow(“ZED”, data)
However, if I transform the image like the following, everything is fine:
data = cv2.cvtColor(data, cv2.COLOR_BGRA2BGR)
So, in the end, are the retrieved images RGBA or BGRA?