1 | initial version |
It seems it does not preserve the aspect ratio: https://github.com/opencv/opencv/blob/9e1b1e5389237c2b9f6c7b9d7715d9836c0a5de1/modules/dnn/src/dnn.cpp#L139-L150
So, the image will be stretched if the AR of your target size is different than the input image AR. This needs to be considered as the features representing an object may change dramatically with this kind of stretches.