hi_vpc_resize_info

Description

Defines the parameters for VPC resizing.

Prototype

hi_vpc_resize_info = {"resize_width": resize_width,
                      "resize_height": resize_height,
                      "interpolation": interpolation}

Members

Member

Description

resize_width

Int, image width after resizing.

resize_height

Int, image height after resizing.

interpolation

Int, resizing algorithm.

Atlas inference products: The following resizing algorithms are supported:
  • 0: conventional bilinear algorithm, whose compute process is close to that of OpenCV. When the input and output images are both in RGB format and the resizing range is [1/32, 512], the maximum value difference of a single pixel from OpenCV is ±1.
  • 1: conventional nearest neighbor algorithm, whose compute process is close to that of OpenCV.
For the Atlas A2 training products/Atlas A2 inference products, the following resizing algorithms are supported:
  • 0: conventional bilinear algorithm, whose compute result is close to that of OpenCV-3.4.2.
  • 1: conventional nearest neighbor algorithm, whose compute result is close to that of OpenCV-3.4.2.
For the Atlas 200I/500 A2 inference products, the following resizing algorithms are supported:
  • 0: conventional bilinear algorithm, whose compute result is close to that of OpenCV-3.4.2.
  • 1: conventional nearest neighbor algorithm, whose compute result is close to that of OpenCV-3.4.2.
For the Atlas A3 training products/Atlas A3 inference products, the following resizing algorithms are supported:
  • 0: conventional bilinear algorithm, whose compute result is close to that of OpenCV-3.4.2.
  • 1: conventional nearest neighbor algorithm, whose compute result is close to that of OpenCV-3.4.2.