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 🙂