mxpi_facealignment
Function |
Object alignment plugin, which can be used to align detected object images. It inputs the object image to be aligned and its key point information, and then outputs the aligned object image. |
|---|---|
Synchronous/Asynchronous (Status) |
Synchronous |
Constraints |
|
Plugin Base Class (Factory) |
mxpi_facealignment |
Input/Output |
|
Property |
For details, see Table 1. |
Property Name |
Description |
Mandatory or Not |
Modifiable or Not |
|---|---|---|---|
deviceId |
Ascend AI Processor ID, which is specified by the deviceId property in the stream_config field. You do not need to set the ID. |
No |
Yes |
dataSourceImage |
Index of the object image input data. The default value is the key value of the output port of the upstream plugin. |
No |
Yes |
dataSourceKeyPoint |
Index of the key point input data. The default value is the key value of the output port of the upstream plugin. |
No |
Yes |
afterFaceAlignmentHeight |
Image height after object alignment. The default value is 112, and the value range is [32, 8192]. |
No |
Yes |
afterFaceAlignmentWidth |
Image width after object alignment. The default value is 112, and the value range is [32, 8192]. |
No |
Yes |
Ensure that the properties of afterFaceAlignmentHeight and afterFaceAlignmentWidth are consistent with the metadata of the input image. Otherwise, the alignment result fails to be obtained due to inconsistent parameters. In addition, OpenCV requires that the height and width be multiples of 2.