We are currently experiencing some mishaps with the image manip setCenterCrop function :
We are using a OAK-D lite with stereo image input resolution of 480p; We then wanted to center crop the image by a ratio of 0.95 and a whRatio of 1.0.
Here is the following input image :
We then apply the following manip :
manip_right = pipeline.create(depthai.node.ImageManip)
manip_right.initialConfig.setCenterCrop(
ratio
=0.95,
whRatio
=1)
manip_right.initialConfig.setResize(640, 480)
here is the output :
The operation seems wrong so we use opencv to do the same operation :
The result with opencv is more coherent with a ratio=0.95
Is this the correct behavior of the image manip function ?