Preprocess with hardware acceleration

Our model input is fixed width and height( depends on model) and BCHW format, nomalized with 0 - 1.0.
So we need do below preprocesses from a RGB image:

  1. resize RGB image to model height x height, currently we use opencv resize function.
  2. change BHWC to BCHW, batch size is always 1.
  3. normalize CHW data( 0 - 255, one byte ) to 0 - 1.0 ( 4 bytes float), just do “x / 255”

I want to accelerate those preprocesses by hardware, can you give me help how I can impelment them?

We use C/C++ for our project.

Hi,

It’s recommended to try our Deepstream SDK.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.