Hi!
Im trying to rotate the camera in this example, I´m using the ImageManip node but I´m getting this error: [192.168.0.172] [300.302] [system] [critical] Fatal error. Please report to developers. Log: 'ImageManipHelper' '61'

I have this code (i don´t post the script part because is equal to the example):

pipeline = dai.Pipeline()
#Define a source - color camera
cam = pipeline.create(dai.node.ColorCamera)
cam.setInterleaved(False)
#VideoEncoder
jpeg = pipeline.create(dai.node.VideoEncoder)
jpeg.setDefaultProfilePreset(cam.getFps(), dai.VideoEncoderProperties.Profile.MJPEG)`

#Rotate setImageOrientation
manipRgb=pipeline.create(dai.node.ImageManip)
manipRgb.initialConfig.setFrameType(dai.ImgFrame.Type.NV12)
rgbRr=dai.RotatedRect()
rgbRr.center.x, rgbRr.center.y = cam.getPreviewWidth() // 2, cam.getPreviewHeight() // 2
rgbRr.size.width, rgbRr.size.height = cam.getPreviewHeight(), cam.getPreviewWidth()
rgbRr.angle = 90
manipRgb.initialConfig.setCropRotatedRect(rgbRr, False)
cam.video.link(manipRgb.inputImage)`

#Connections
manipRgb.out.link(jpeg.input)
jpeg.bitstream.link(script.inputs['jpeg'])`

#Connect to device with pipeline
with dai.Device(pipeline) as device:
    while not device.isClosed():
        time.sleep(1))

Can anyone help me?
Thank you in advance 🙂

  • erik replied to this.

    Hello mamolina ,
    Currently, ImageManip doesn't fully support NV12 yet (see docs here), but you could do this with RGB frames, so with camRgb.preview output (instead of camRgb.video). Would that work for you app?
    THanks, Eirk

    Hello @erik !!
    Thank you very much for your quick answer, the truth is that I would need the image quality, but I will have to use preview, because I want to add some lines with OpenCV and with video I can't visualise, or at least I don't know, the output in an OpenCV window.

    Thanks 😁

    • erik replied to this.

      Hi @erik !!
      Of course, I ran that script (the one that you put on your message) on my computer and it was very slow, it was losing frames, but it turns out that it was because the network adapter of my computer is 100Mb and the camera goes to 1Gb, that's why it was going badly, I have changed to a computer that has a 1Gb adapter and now it works perfectly.
      I'm sorry if I didn´t made myself clear in the previous message.
      Thank you so much!!

      • erik replied to this.

        Hi mamolina , oh perfect that you got it working! Thanks for circling back.
        Kind regards, Erik