Hi all ,
I have this pipeline which works perfectly using depthai version 2 :
pipeline = dai.Pipeline()
camMono = pipeline.create(dai.node.MonoCamera)
detectionNetwork = pipeline.create(dai.node.YoloDetectionNetwork)
xoutMono = pipeline.create(dai.node.XLinkOut)
nnOut = pipeline.create(dai.node.XLinkOut)
controlIn = pipeline.create(dai.node.XLinkIn)
manip = pipeline.create(dai.node.ImageManip)
manipConfig = pipeline.create(dai.node.XLinkIn)
xoutMono.setStreamName("mono")
nnOut.setStreamName("nn")
controlIn.setStreamName("control")
manipConfig.setStreamName("configuration")
# Properties
camMono.setBoardSocket(dai.CameraBoardSocket.RIGHT)
camMono.setResolution(dai.MonoCameraProperties.SensorResolution.THE_800_P)
camMono.initialControl.setManualFocus(130)
camMono.setFps(30)
# Network specific settings
detectionNetwork.setConfidenceThreshold(0.25)
detectionNetwork.setNumClasses(2)
detectionNetwork.setCoordinateSize(4)
detectionNetwork.setIouThreshold(0.5)
detectionNetwork.setBlobPath(nnPath)
detectionNetwork.setNumInferenceThreads(2)
detectionNetwork.input.setBlocking(False)
manip.initialConfig.setResizeThumbnail(320,320)
manip.initialConfig.setFrameType(dai.RawImgFrame.Type.BGR888p)
# Linking
camMono.out.link(manip.inputImage)
manip.out.link(detectionNetwork.input)
detectionNetwork.passthrough.link(xoutMono.input)
detectionNetwork.out.link(nnOut.input)
controlIn.out.link(camMono.inputControl)
manipConfig.out.link(manip.inputConfig)
Then I want to rotate the image from outside the pipeline with 180 degrees:
configQueue = device.getInputQueue('configuration')
cfg = dai.ImageManipConfig()
cfg.setFrameType(dai.RawImgFrame.Type.BGR888p)
cfg.setRotationDegrees(180)
cfg.setResizeThumbnail(320,320)
configQueue.send(cfg)
The problem is that i do not get errors but the image I get is completely wrong . How can I solve this to keep the same image but just rotate it with 180 degrees ?
