Skip to content

Processing failed, potentially unsupported config #529

@f-alemauro

Description

@f-alemauro

Hello,
can someone please explain me why this script does not work? It gives me

[14442C10D13799CD00] [55.888] [ImageManip(3)] [error] Processing failed, potentially unsupported config

Here is the code

import depthai as dai

pipeline = dai.Pipeline()
pipeline.setOpenVINOVersion(version=dai.OpenVINO.Version.VERSION_2021_3)

cam = pipeline.create(dai.node.ColorCamera)
cam.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
cam.setIspScale(2,3)
cam.setInterleaved(False)
cam.setPreviewSize(1280, 720)    


preview_rotate_manip = pipeline.create(dai.node.ImageManip)
rotation_cfg = dai.RotatedRect()
rotation_cfg.center.x, rotation_cfg.center.y = 0.5, 0.5
rotation_cfg.size.width, rotation_cfg.size.height = 1,1
rotation_cfg.angle = 0
preview_rotate_manip.initialConfig.setCropRotatedRect(rotation_cfg, True)
preview_rotate_manip.setMaxOutputFrameSize(1280*720*3)
cam.preview.link(preview_rotate_manip.inputImage)


preview_zoom_manip = pipeline.create(dai.node.ImageManip)
zoom_cfg = dai.RotatedRect()
zoom_cfg.center.x, rotation_cfg.center.y = 0.5, 0.5
zoom_cfg.size.width, rotation_cfg.size.height = 1,1
preview_zoom_manip.initialConfig.setCropRotatedRect(zoom_cfg, True)
preview_zoom_manip.setMaxOutputFrameSize(1280*720*3)
preview_rotate_manip.out.link(preview_zoom_manip.inputImage)


preview_resize_manip = pipeline.create(dai.node.ImageManip)
preview_resize_manip.initialConfig.setResize(300,300)
preview_resize_manip.initialConfig.setKeepAspectRatio(False)
preview_resize_manip.setMaxOutputFrameSize(1280*720*3)
preview_zoom_manip.out.link(preview_resize_manip.inputImage)


cam_xout = pipeline.create(dai.node.XLinkOut)
cam_xout.setStreamName("RGB")
preview_resize_manip.out.link(cam_xout.input)

with dai.Device(pipeline) as device:
    q_rgb_out = device.getOutputQueue("RGB", maxSize=1, blocking=True)
    while True: 
        in_rgb = q_rgb_out.get()
        cv2.imshow("RGB", in_rgb.getCvFrame())
        cv2.waitKey(5)

I know this is a very weird example, but that would be the base for my application.
I'm on

  • Windows 10
  • VSCode
  • Depthai 2.13.1.0
  • Python 3.9.2

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions