mxpi_keypointpostprocessor

Function

Inherits the image postprocessing base class, which is used to postprocess the inference output tensor of a posture detection model.

Constraints

Currently, the upstream of the plugin can only be connected to the mxpi_tensorinfer inference plugin, and only MxpiTensorPackageList can be used as the metadata input. This plugin calls the object detection base class Process API of the mxBase repository to communicate and receive the return value of the KeyPointInfo data type.

Plugin Base Class (Factory)

mxpi_keypointpostprocessor

Input/Output

  • Input: buffer (data type: MxpiBuffer), metadata (data type: MxpiTensorPackageList)
  • Output: buffer (data type: MxpiBuffer), metadata (data type: MxpiPoseList)

Port Format (Caps)

  • Static input: {"metadata/tensor"}
  • Static output: {"metadata/keypoint"}

Property

For details, see Table 1 and Table 2.

Sample pipeline of the Python postprocessing plugin:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
"mxpi_keypointpostprocessor0": {
            "props": {
                "funcLanguage":"python",
                "postProcessConfigPath": "../models/openpose/openpose.cfg",
                "labelPath": "../models/openpose/coco.names",
                "postProcessLibPath": "../../../python",
                "className":"OpenPosePostProcess",
                "pythonModule":"postprocess.post"
            },
            "factory": "mxpi_keypointpostprocessor",
            "next": "mxpi_dataserialize0"
        },

Sample pipeline of the C++ postprocessing plugin:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
   "mxpi_keypointpostprocessor0": {
        "props": {
            "dataSource": "mxpi_tensorinfer0",
            "postProcessConfigPath": "../models/openpose/openpose.cfg",
            "labelPath": "../models/openpose/coco.names",
            "postProcessLibPath": "libopenposepostprocess.so"
        },
        "factory": "mxpi_keypointpostprocessor",
        "next": "mxpi_dataserialize0"
    },