mxpi_channelosdcoordsconverter

Function

Multi-channel coordinate conversion plugin that receives the drawing units and combination information (coordinate offsets) from each channel, and outputs the summarized coordinate conversion result.

Synchronous/Asynchronous (Status)

Synchronous

Constraints

The value of channelIds cannot be left blank and must be the same as the value of channelIds set in mxpi_channelimagesstitcher.

Plugin Base Class (Factory)

mxpi_channelosdcoordsconverter

Input/Output

Input: buffer (data type: MxpiBuffer) and metadata (data types: MxpiVisionList and MxpiOsdInstancesList)

Output: buffer (data type: MxpiBuffer) and metadata (data type: MxpiOsdInstancesList)

Port Format (Caps)

Static input: {"metadata/stitch-info"}; dynamic input: {"metadata/osd"}

Dynamic output: {"metadata/osd"}

Property

For details, see Table 1.

Table 1 mxpi_channelosdcoordsconverter plugin properties

Property Name

Description

Mandatory or Not

Modifiable or Not

dataSourceStitchInfo

The image combination information of the OSD combination plugin is used as the index of the input data. The default value is the key value of the output port of the upstream plugin.

No

Yes

dataSourceOsds

Index of the input data of OSD drawing units. Multiple indexes can be configured, but the number of indexes must be the same as that of input ports. The default value is the key value of the output port of the upstream plugin.

No

Yes

channelIds

Input channel IDs, which are separated by commas (,). Each channel ID must be unique.

Example: "channelIds":"0,1"

Yes

Yes

enableFixedArea

Whether to make the fixedArea parameter in the OSD instance take effect (the instance does not scale when the image is scaled). The value is of the Boolean type.

  • 0: yes
  • 1: no (default)

No

Yes

Example

Input the multi-channel drawing unit buffers (MxpiOsdInstancesList) 1-N and the combination information (MxpiVisionList) from the upstream plugin, and output the OSD drawing unit buffers summarized by a specified channel after buffers of other channels are filtered out.

Pipeline sample:

"mxpi_channelosdcoordsconverter0":{
    "props":{
		"dataSource":"mxpi_channelimagesstitcher0_1",
                "channelIds":"0,1"
    },
    "factory":"mxpi_channelosdcoordsconverter",
    "next":"mxpi_aicpuosd0:1"
},