Suggestions for implementing Resizing and Padding as a pre-processing step and AffineTransforms?

Hello there,

  1. I am trying to implement a few pipelines where it is essential to apply resizing and padding for pre-processing in order to maintain aspect ratio. However, I am confused as to how to apply resizing with padding before/after converting the input to a Tensor.
  2. Is there any way we can apply operations in Unity like getAffineTransform, invertAffineTransform etc.? If not via Sentis, can I use any other packages that would not hurt the speed and increase latency?

Thanks.

Is this for BlazePose?
If so we’ll release a tutorial on that soon. It will contain image sheering with affine transform, you can use that once it’s out, I think it’ll be useful for you

1 Like

Thanks for responding, I’ve managed to figure out the Resizing with Padding part using the Functional API.