mxpi_warpperspective
Function |
Perspective transformation plugin, which is used in the scenario where the detection box is a rectangle with a certain angle after inference and needs to be rotated to be a regular rectangle. The output is the cropped image information of each detection box. The cropped image is obtained through perspective transformation. This plugin contains a static port (must be connected) and a dynamic port (not created if not connected). |
|---|---|
Synchronous/Asynchronous (Status) |
Synchronous |
Constraints |
None |
Plugin Base Class (Factory) |
mxpi_warpperspective |
Input/Output |
|
Port Format (Caps) |
|
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
debugMode |
If this parameter is set to true, the image after affine transformation is saved to the local drive. The image path is warpPerspectiveImage/image{index}.jpg in the current program path, in which the index ranges from 0 to 200. If the value exceeds 200, the value starts from 0 again and the source image is replaced. |
No |
Yes |
oriImageDataSource |
Index of the image data to be rotated. This property is valid when a dynamic port is created. If no dynamic port is available, the image data is obtained from the buffer corresponding to the static port (port 0). |
No |
Yes |
When debugMode is set to true, the output data of the plugin is saved to files on the drive, resulting in additional files. You need to manage those files and delete them if necessary. Do not use this function when processing private or sensitive data.