Hi Brandon and erik .
Thanks so much for the information...
I'm trying to implement camera rotation to 90 degrees using specified method using colorCamera
Below is code snippet, I get an error, seems there is unknown property error.
pipeline = depthai.Pipeline()
if camera:
print("Creating Color Camera...")
cam = pipeline.createColorCamera()
# code to rotate camera by 90 degrees - start
manip90 = pipeline.createImageManip()
rr = depthai.RotatedRect()
rr.center.x, rr.center.y = cam.getResolutionWidth() // 2, cam.getResolutionHeight() // 2
rr.size.width, rr.size.height = cam.getResolutionHeight(), cam.getResolutionWidth()
rr.angle = 90
manip90.initialConfig.setCropRotatedRect(rr, False)
cam.out.link(manip90.inputImage) # problem with this line...
# code to rotate camera by 90 degrees - end
cam.setPreviewSize(300,300)
cam.setResolution(depthai.ColorCameraProperties.SensorResolution.THE_1080_P)
cam.setInterleaved(False)
cam.setBoardSocket(depthai.CameraBoardSocket.RGB)
cam_xout = pipeline.createXLinkOut()
cam_xout.setStreamName("cam_out")
cam.preview.link(cam_xout.input)
Error message as below:
cam.out.link(manip90.inputImage) # problem with this line...
AttributeError: 'depthai.ColorCamera' object has no attribute 'out'
Requesting your kind help here..
Please let me know if my implementation is correct and also how to resolve this error.
I need to simply implement the following:
The camera is placed horizontally, so need to rotate it to 90 degrees so that straight image is captured...
This needs to happen both at sending image for inference and the one which we display finally in imshow method.
Thanks & Best Regards,
Ram