-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Line: 39
emtech-stretch-labs//control-agent/text-to-speech/realsense.py
Lines 36 to 46 in e934c6e
status, colour_image, depth_image = self.get_frame() | |
r_colour_image = np.rot90(colour_image, 3) | |
# TODO: check why image layers come back incorrectly | |
bimg = Image.fromarray(r_colour_image, "RGB") | |
b, g, r = bimg.split() | |
img = Image.merge("RGB", (r, g, b)) | |
img.save("test.png") | |
img_byte = io.BytesIO() | |
img.save(img_byte, format="PNG") |