I'm seeing unexpected results from the output of the image manipulation node. Instead of RGB i'm seeing a Gray image. I've reduced the following code to the minimum set to recreate the issue. I would expect an RGB888p output. The image i receive has the same value in all r/g/b channels. This is running on a OAK-1, with depthai version 2.10.0.0
import cv2
import depthai as dai
from depthai import *
pipeline = dai.Pipeline()
cam_rgb_node = pipeline.createColorCamera()
cam_rgb_node.setBoardSocket(dai.CameraBoardSocket.RGB)
cam_rgb_node.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
manip_node = pipeline.create(dai.node.ImageManip)
manip_node.initialConfig.setFrameType(dai.ImgFrame.Type.RGB888p)
manip_node.setMaxOutputFrameSize(1920*1080*3)
xout_rgb = pipeline.createXLinkOut()
xout_rgb.setStreamName("rgb")
cam_rgb_node.video.link(manip_node.inputImage)
manip_node.out.link(xout_rgb.input)
with dai.Device(pipeline) as device:
q_rgb = device.getOutputQueue(name="rgb",maxSize = 1, blocking = False)
while True:
image = q_rgb.get()
if image is not None:
cv2.imshow("rgb",image.getCvFrame())
if cv2.waitKey(1) == ord('q'):
break