• Send RGB image to XLinkIn queue in BGR888p format?

Hi,

I'd like to verify NN detections on images sent to pipeline from host. Problem is, I'm not able to send there RGB image. Currently I have following code:

`
input_width = 739
input_height = 416
data = cv2.imread(img_file_path, cv2.IMREAD_GRAYSCALE)
data = cv2.resize(data, (input_width, input_height), interpolation=cv2.INTER_AREA)
data = data. Reshape(input_width*input_height)

    frame = dai.ImgFrame()
    frame.setData(data)
    frame.setTimestamp(monotonic())
    # frame.setSequenceNum(1)
    frame.setWidth(input_width)
    frame.setHeight(input_height)
    frame.setType(dai.RawImgFrame.Type.RAW8)  # ? BGR888p

    xLinkInQueue.send(frame)

`

Can you advise how to read RGB images in format BGR888p?

  • erik replied to this.