mxpi_imageresize
Function |
Resizes the decoded YUV and RGB images with the specified width and height.
|
||||
|---|---|---|---|---|---|
Synchronous/Asynchronous (Status) |
Asynchronous |
||||
Constraints |
|
||||
Plugin Base Class (Factory) |
mxpi_imageresize |
||||
Input/Output |
|
||||
Port Format (Caps) |
|
||||
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
deviceId |
Device ID, which is specified by the deviceId property in the stream_config field. You do not need to set the ID. |
No |
Yes |
removeParentData |
Whether to remove the original buffer data. The default value is 0.
|
No |
Yes |
parentName |
Index of the input data (generally the name of the upstream element). This property will not evolve. Therefore, use dataSource instead. |
No |
Yes |
dataSource |
Index of the input data (generally the name of the upstream element). The default value is the key value of the output port of the upstream plugin. |
Recommended |
Yes |
resizeHeight |
|
No |
Yes |
resizeWidth |
|
No |
Yes |
maxDimension |
Maximum length of the resized image in Fast R-CNN resizing mode |
No |
Yes |
minDimension |
Minimum length of the resized image in Fast R-CNN resizing mode |
No |
Yes |
resizeType |
Resizing mode:
|
No |
Yes |
scaleValue |
Value for image resizing. The default value is 32. The value range is [32, 8192].
|
No |
Yes |
RGBValue |
Value for color padding. Enter the R, G, and B values in sequence. By default, the value is empty and color padding is not performed. The default background color of DVPP is used. Only Ascend is supported. |
No |
Yes |
interpolation |
Interpolation mode of the resize plugin. The default value is 0. The following algorithms are supported by the
The following algorithms are supported by the
The following algorithms are supported by the Atlas inference product:
|
No |
Yes |
cvProcessor |
Processing method:
|
No |
Yes |
paddingType |
Padding mode:
|
No |
Yes |
paddingHeight |
Height of the padded image, which must be greater than the height of the resized image. (This property takes effect only in OpenCV processing.) |
No |
Yes |
paddingWidth |
Width of the padded image, which must be greater than the width of the resized image. (This property takes effect only in OpenCV processing.) |
No |
Yes |
paddingColorB |
Color blue of the padded image. The value can be a floating point number ranging from 0 to 255. Only OpenCV is supported. |
No |
Yes |
paddingColorG |
Color green of the padded image. The value can be a floating point number ranging from 0 to 255. Only OpenCV is supported. |
No |
Yes |
paddingColorR |
Color red of the padded image. The value can be a floating point number ranging from 0 to 255. Only OpenCV is supported. |
No |
Yes |
handleMethod |
Reserved property. Use cvProcessor. Processing method:
|
No |
Yes |