Hi erik , Brandon
Thanks for your reply...
I've used same code from your example as below:
camRgb = pipeline.createColorCamera()
camRgb.setPreviewSize(640, 400)
camRgb.setResolution(depthai.ColorCameraProperties.SensorResolution.THE_1080_P)
camRgb.setInterleaved(False)
manipRgb = pipeline.createImageManip()
rgbRr = depthai.RotatedRect()
rgbRr.center.x, rgbRr.center.y = camRgb.getPreviewWidth() // 2, camRgb.getPreviewHeight() // 2
rgbRr.size.width, rgbRr.size.height = camRgb.getPreviewHeight(), camRgb.getPreviewWidth()
rgbRr.angle = 90
manipRgb.initialConfig.setCropRotatedRect(rgbRr, False)
camRgb.preview.link(manipRgb.inputImage)
cropManip = pipeline.createImageManip()
cropManip.initialConfig.setResize(300, 300)
manipRgb.out.link(cropManip.inputImage)
manipRgbOut = pipeline.createXLinkOut()
manipRgbOut.setStreamName("cam_out")
cropManip.out.link(manipRgbOut.input)
I still get same error as below:
[14442C1021FB92CD00] [140.524] [NeuralNetwork(4)] [warning] Input image (640x400) does not match NN (300x300)
I do get the output frame, however, without inference results...
Really need help to understand what I am doing wrong.
Alternatively, can you please provide an updated script of gen2-fatigue-detection with rotate option using the code suggested for rotate?
I am using this as an example... want to run inference with camera placed horizontally.
This is kind of important, thanks in advance for your time and help.
Thanks & Best Regards,
Ram