# qtimlvsegmentation

Source: [https://docs.qualcomm.com/doc/80-70022-50SC/topic/qtimlvsegmentation.html](https://docs.qualcomm.com/doc/80-70022-50SC/topic/qtimlvsegmentation.html)

qtimlvsegmentation 插件处理将图像分割/深度估计模型的张量从 ML 推理插件（例如 qtimltflite、qtimlsnpe 和 qtimlqnn）输出到预测结果中。

Note: 此插件将被弃用。

处理后的输出是图像遮罩（GstCaps：video/x-raw）。[GstCaps](https://gstreamer.freedesktop.org/documentation/gstreamer/gstcaps.html) 决定了尺寸和格式，这些尺寸和格式会通过 qtivcomposer 应用到原始图像上。

对于此遮罩，该元素使用基于 CPU 的 [Cairo](https://www.cairographics.org) 2D 图形库在 ION/DMA 缓存中绘制预测结果。GstImageBufferPool 自定义缓存池类通过 IOCTL 命令将 ION/DMA 缓存分配给内核。

插件的模块和标签属性决定了后处理操作的方法。

- module 属性指定了后处理模块。该属性在运行中使用包含前缀 "`ml-vsegmentation-`-" 的 `/usr/lib/gstreamer-1.0/ml/modules/` 中的可用库动态填充。
- labels 属性是一个自定义文本文件，对于必须为预测标签提供的每个机器学习检测模型都不同。

Figure : 使用 qtimlvsegmentation 的 GstBuffer 工作流
            
            <!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->

<!-- Generated by Microsoft Visio, SVG Export gstbuffer_workflow_qtimlvsegmentation.svg gstbuffer_workflow_qtimlvdetect -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/" width="11.3372in" height="5.39154in" viewbox="0 0 816.276 388.191" xml:space="preserve" color-interpolation-filters="sRGB" class="st28"><v:documentproperties v:langid="1033" v:viewmarkup="false"></v:documentproperties>
<style>.svg-1 .st1 { fill: #fafafa; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st2 { fill: #d2d7e1; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st3 { fill: none; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st4 { fill: #ffffff; font-family: Calibri; font-size: 1.00001em; font-weight: bold; letter-spacing: -0.00833327em }
.svg-1 .st5 { stroke: #000000; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st6 { fill: #007884; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st7 { fill: #ffffff; font-family: Roboto; font-size: 1.00001em }
.svg-1 .st8 { font-family: SimHei; font-size: 1em }
.svg-1 .st9 { fill: #ffffff; font-family: SimHei; font-size: 1.00001em }
.svg-1 .st10 { fill: #000000; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st11 { fill: #2a2aea; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st12 { fill: #000000; font-family: Roboto; font-size: 1.00001em }
.svg-1 .st13 { font-size: 1em }
.svg-1 .st14 { fill: none }
.svg-1 .st15 { font-size: 1em; letter-spacing: -0.00833327em }
.svg-1 .st16 { fill: #000000; font-family: Roboto; font-size: 1.00001em; font-weight: bold }
.svg-1 .st17 { fill: #ffffff; font-family: Roboto; font-size: 1.00001em; font-weight: bold }
.svg-1 .st18 { stroke: #b3b7bf; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st19 { fill: #ffffff; font-family: Roboto; font-size: 1.00001em; font-weight: bold; letter-spacing: -0.00833327em }
.svg-1 .st20 { font-family: SimHei; font-size: 1em; font-weight: normal }
.svg-1 .st21 { font-size: 1em; letter-spacing: 0em }
.svg-1 .st22 { font-family: SimHei; font-size: 1em; font-weight: normal; letter-spacing: 0em }
.svg-1 .st23 { font-size: 1em; font-weight: normal; letter-spacing: 0em }
.svg-1 .st24 { font-size: 1em; font-weight: normal }
.svg-1 .st25 { font-family: Calibri; font-size: 1em; font-weight: normal }
.svg-1 .st26 { fill: #000000; font-family: Roboto; font-size: 0.874992em }
.svg-1 .st27 { fill: #000000; font-family: SimHei; font-size: 0.874992em }
.svg-1 .st28 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }</style>
<g v:mid="0" v:index="1" v:groupcontext="foregroundPage">	<title>gstbuffer_workflow_qtimlvdetect</title>	<v:pageproperties v:drawingscale="1" v:pagescale="1" v:drawingunits="19" v:shadowoffsetx="9" v:shadowoffsety="-9"></v:pageproperties>	<g id="shape3-1" v:mid="3" v:groupcontext="shape" transform="translate(0.37524,-0.375412)">		<title>Sheet.3</title>		<path d="M0 382.57 A5.62513 5.62513 -180 0 0 5.62 388.19 L809.9 388.19 A5.62513 5.62513 -180 0 0 815.53 382.57 L815.53					 6.38 A5.62513 5.62513 -180 0 0 809.9 0.75 L5.62 0.75 A5.62513 5.62513 -180 0 0 -0 6.38 L0 382.57 Z" class="st1"></path>	</g>	<g id="shape4-3" v:mid="4" v:groupcontext="shape">		<title>Sheet.4</title>		<path d="M810.28 0.75 C813.17 0.75 815.53 3.11 815.53 6 L815.53 382.19 C815.53 385.09 813.17 387.44 810.28 387.44 L6					 387.44 C3.11 387.44 0.75 385.09 0.75 382.19 L0.75 6 C0.75 3.11 3.11 0.75 6 0.75 L810.28 0.75 ZM810.28 0					 L6 0 C2.69 0 0 2.69 0 6 L0 382.19 C0 385.5 2.69 388.19 6 388.19 L810.28 388.19 C813.59 388.19 816.28 385.5					 816.28 382.19 L816.28 6 C816.28 2.69 813.59 0 810.28 0 Z" class="st2"></path>	</g>	<g id="shape12-5" v:mid="12" v:groupcontext="shape" transform="translate(281.659,-200.823)">		<title>Sheet.12</title>		<desc>+...</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="23.8198" cy="380.991" width="47.64" height="14.4"></v:textrect>		<rect x="0" y="373.791" width="47.6396" height="14.4" class="st3"></rect>		<text x="0" y="384.59" class="st4" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+...</text>		</g>	<g id="shape76-8" v:mid="76" v:groupcontext="shape" transform="translate(19.9471,207.038) rotate(-90)">		<title>Sheet.76</title>		<path d="M0 388.19 L12.08 388.19" class="st5"></path>	</g>	<g id="shape86-11" v:mid="86" v:groupcontext="shape" transform="translate(107.553,-132)">		<title>Sheet.86</title>		<desc>ML 预处理插件</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="67.5" cy="369.441" width="135" height="37.5"></v:textrect>		<path d="M-0 385.19 A3.00007 3.00007 -180 0 0 3 388.19 L132 388.19 A3.00007 3.00007 -180 0 0 135 385.19 L135 353.69 A3.00007					 3.00007 -180 0 0 132 350.69 L3 350.69 A3.00007 3.00007 -180 0 0 0 353.69 L0 385.19 Z" class="st6"></path>		<text x="27.55" y="373.43" class="st7" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>ML <tspan class="st8">预处理插件</tspan></text>		</g>	<g id="shape89-15" v:mid="89" v:groupcontext="shape" transform="translate(15.0001,-42.0001)">		<title>Sheet.89</title>		<desc>视频源</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="60" cy="369.441" width="120.01" height="37.5"></v:textrect>		<path d="M-0 385.19 A3.00007 3.00007 -180 0 0 3 388.19 L117 388.19 A3.00007 3.00007 -180 0 0 120 385.19 L120 353.69 A3.00007					 3.00007 -180 0 0 117 350.69 L3 350.69 A3.00007 3.00007 -180 0 0 -0 353.69 L0 385.19 Z" class="st6"></path>		<text x="42" y="373.04" class="st9" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>视频源</text>		</g>	<g id="shape92-18" v:mid="92" v:groupcontext="shape" transform="translate(242.553,-150.75)">		<title>Sheet.92</title>		<path d="M0 388.19 L93.28 388.19" class="st5"></path>	</g>	<g id="shape93-21" v:mid="93" v:groupcontext="shape" transform="translate(334.96,-147.758)">		<title>Sheet.93</title>		<path d="M0 388.19 L5.18 385.2 L0 382.21 L0 388.19 Z" class="st10"></path>	</g>	<g id="shape95-23" v:mid="95" v:groupcontext="shape" transform="translate(340.638,-132)">		<title>Sheet.95</title>		<desc>ML 推理插件</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="67.5" cy="369.441" width="135" height="37.5"></v:textrect>		<path d="M-0 385.19 A3.00007 3.00007 -180 0 0 3 388.19 L132 388.19 A3.00007 3.00007 -180 0 0 135 385.19 L135 353.69 A3.00007					 3.00007 -180 0 0 132 350.69 L3 350.69 A3.00007 3.00007 -180 0 0 0 353.69 L0 385.19 Z" class="st6"></path>		<text x="33.55" y="373.43" class="st7" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>ML <tspan class="st8">推理插件</tspan></text>		</g>	<g id="shape98-27" v:mid="98" v:groupcontext="shape" transform="translate(574.345,-132)">		<title>Sheet.98</title>		<desc>qtimlpostprocess</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="67.5" cy="369.441" width="135" height="37.5"></v:textrect>		<path d="M-0 385.19 A3.00007 3.00007 -180 0 0 3 388.19 L132 388.19 A3.00007 3.00007 -180 0 0 135 385.19 L135 353.69 A3.00007					 3.00007 -180 0 0 132 350.69 L3 350.69 A3.00007 3.00007 -180 0 0 0 353.69 L0 385.19 Z" class="st11"></path>		<text x="20.79" y="373.04" class="st7" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>qtimlpostprocess</text>		</g>	<g id="shape100-30" v:mid="100" v:groupcontext="shape" transform="translate(243,-123.3)">		<title>Sheet.100</title>		<desc>neural-network/tensors</desc>		<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="49.5" cy="376.491" width="99" height="23.4"></v:textrect>		<rect x="0" y="364.791" width="99" height="23.4" class="st3"></rect>		<text x="7.37" y="373.79" class="st12" v:langid="1033"><v:paragraph v:spline="-1" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>neural-network/<tspan x="29.41" dy="1em" class="st13">tensors</tspan></text>		</g>	<g id="shape102-34" v:mid="102" v:groupcontext="shape" transform="translate(475.638,-150.75)">		<title>Sheet.102</title>		<path d="M0 388.19 L93.28 388.19" class="st5"></path>	</g>	<g id="shape103-37" v:mid="103" v:groupcontext="shape" transform="translate(568.045,-147.758)">		<title>Sheet.103</title>		<path d="M0 388.19 L5.18 385.2 L0 382.21 L0 388.19 Z" class="st10"></path>	</g>	<g id="shape104-39" v:mid="104" v:groupcontext="shape" transform="translate(474.976,-123.3)">		<title>Sheet.104</title>		<desc>neural-network/tensors</desc>		<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="50.5119" cy="376.491" width="101.03" height="23.4"></v:textrect>		<rect x="0" y="364.791" width="101.024" height="23.4" class="st3"></rect>		<text x="8.39" y="373.79" class="st12" v:langid="1033"><v:paragraph v:spline="-1" v:horizalign="1"></v:paragraph><v:tablist></v:tablist>neural-network/<tspan x="30.42" dy="1em" class="st13">tensors</tspan></text>		</g>	<g id="shape106-43" v:mid="106" v:groupcontext="shape" transform="translate(135,-60.75)">		<title>Sheet.106</title>		<path d="M0 388.19 L541.97 388.19" class="st5"></path>	</g>	<g id="shape107-46" v:mid="107" v:groupcontext="shape" transform="translate(676.095,-57.7583)">		<title>Sheet.107</title>		<path d="M0 388.19 L5.18 385.2 L0 382.21 L0 388.19 Z" class="st10"></path>	</g>	<g id="shape108-48" v:mid="108" v:groupcontext="shape" transform="translate(339.985,-41.6998)">		<title>Sheet.108</title>		<desc>video/x-raw</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="66" cy="380.991" width="132.01" height="14.4"></v:textrect>		<rect x="0" y="373.791" width="132" height="14.4" class="st3"></rect>		<text x="34.75" y="384.59" class="st12" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>video/x-raw</text>		</g>	<g id="shape110-51" v:mid="110" v:groupcontext="shape" transform="translate(290.482,-156.402)">		<title>Sheet.110</title>		<path d="M235.31 388.19 L235.31 363.44 L0 363.44 L0 388.19 L235.31 388.19 Z" class="st14"></path>		<path d="M235.31 388.19 L235.31 363.44 L0 363.44 L0 388.19" class="st5"></path>	</g>	<g id="shape111-54" v:mid="111" v:groupcontext="shape" transform="translate(522.802,-152.096)">		<title>Sheet.111</title>		<path d="M5.98 383.01 L2.99 388.19 L0 383.01 L5.98 383.01 Z" class="st10"></path>	</g>	<g id="shape112-56" v:mid="112" v:groupcontext="shape" transform="translate(287.49,-152.096)">		<title>Sheet.112</title>		<path d="M0 383.01 L2.99 388.19 L5.98 383.01 L0 383.01 Z" class="st10"></path>	</g>	<g id="shape114-58" v:mid="114" v:groupcontext="shape" transform="translate(75.0001,-79.5)">		<title>Sheet.114</title>		<path d="M0 388.19 L0 318.65 L27.47 318.65 L0 388.19 Z" class="st14"></path>		<path d="M0 388.19 L0 318.65 L27.47 318.65" class="st5"></path>	</g>	<g id="shape115-61" v:mid="115" v:groupcontext="shape" transform="translate(101.59,-146.051)">		<title>Sheet.115</title>		<path d="M0 388.19 L5.18 385.2 L0 382.21 L0 388.19 Z" class="st10"></path>	</g>	<g id="shape117-63" v:mid="117" v:groupcontext="shape" transform="translate(709.345,-83.8058)">		<title>Sheet.117</title>		<path d="M31.93 388.19 L31.93 322.95 L0 322.95 L31.93 388.19 Z" class="st14"></path>		<path d="M31.93 388.19 L31.93 322.95 L0 322.95" class="st5"></path>	</g>	<g id="shape118-66" v:mid="118" v:groupcontext="shape" transform="translate(738.284,-79.5)">		<title>Sheet.118</title>		<path d="M5.98 383.01 L2.99 388.19 L0 383.01 L5.98 383.01 Z" class="st10"></path>	</g>	<g id="shape120-68" v:mid="120" v:groupcontext="shape" transform="translate(681.276,-42.0001)">		<title>Sheet.120</title>		<desc>qtivcomposer</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="60" cy="369.441" width="120.01" height="37.5"></v:textrect>		<path d="M0 385.19 A3.00007 3.00007 -180 0 0 3 388.19 L117 388.19 A3.00007 3.00007 -180 0 0 120 385.19 L120 353.69 A3.00007					 3.00007 -180 0 0 117 350.69 L3 350.69 A3.00007 3.00007 -180 0 0 -0 353.69 L0 385.19 Z" class="st11"></path>		<text x="23.4" y="373.04" class="st7" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>qti<tspan class="st15">v</tspan>composer</text>		</g>	<g id="shape122-72" v:mid="122" v:groupcontext="shape" transform="translate(745.444,-99.0365)">		<title>Sheet.122</title>		<desc>video/ x-raw</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="32.2781" cy="370.803" width="64.56" height="34.7757"></v:textrect>		<rect x="0" y="353.415" width="64.5563" height="34.7757" class="st3"></rect>		<text x="0" y="367.2" class="st12" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>video/<v:newlinechar></v:newlinechar><tspan x="0" dy="1.2em" class="st13">x</tspan>-raw</text>		</g>	<g id="shape124-76" v:mid="124" v:groupcontext="shape" transform="translate(1113.5,141.648) rotate(90)">		<title>Sheet.124</title>		<path d="M0 388.19 L93.19 388.19" class="st5"></path>	</g>	<g id="shape125-79" v:mid="125" v:groupcontext="shape" transform="translate(722.319,-149.043)">		<title>Sheet.125</title>		<path d="M0 383.01 L2.99 388.19 L5.98 383.01 L0 383.01 Z" class="st10"></path>	</g>	<g id="shape126-81" v:mid="126" v:groupcontext="shape" transform="translate(0,-361.8)">		<title>Sheet.126</title>		<desc>GST BIN</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="408.073" cy="380.991" width="816.15" height="14.4"></v:textrect>		<rect x="0" y="373.791" width="816.146" height="14.4" class="st3"></rect>		<text x="385.28" y="384.59" class="st16" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GST BIN</text>		</g>	<g id="group133-84" transform="translate(279,-193.5)" v:mid="133" v:groupcontext="group">		<title>Sheet.133</title>	</g>	<g id="shape16-85" v:mid="16" v:groupcontext="shape" transform="translate(651.375,-216.005)">		<title>Sheet.16</title>		<desc>GstBuffer</desc>		<v:textblock v:margins="rect(7.2,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="74.8125" cy="329.034" width="149.63" height="118.314"></v:textrect>		<path d="M0 383.82 A3.13955 4.36953 -180 0 0 3.14 388.19 L146.49 388.19 A3.13955 4.36953 -180 0 0 149.62 383.82 L149.62					 274.25 A3.13955 4.36953 -180 0 0 146.49 269.88 L3.14 269.88 A3.13955 4.36953 -180 0 0 0 274.25 L0 383.82					 Z" class="st6"></path>		<text x="48.69" y="287.88" class="st17" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GstBuffer</text>		</g>	<g id="shape75-88" v:mid="75" v:groupcontext="shape" transform="translate(651.375,-306)">		<title>Sheet.75</title>		<path d="M0 388.19 L149.12 388.19" class="st18"></path>	</g>	<g id="shape149-91" v:mid="149" v:groupcontext="shape" transform="translate(661.5,-222.75)">		<title>Sheet.149</title>		<desc>+ GstMemory: 图像遮罩 颜色分割图像遮罩 + GstVideoMeta: 描述图像的 meta</desc>		<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="67.5" cy="349.941" width="135.01" height="76.5"></v:textrect>		<rect x="0" y="311.691" width="135" height="76.5" class="st3"></rect>		<text x="0" y="323.67" class="st19" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstMemory: <tspan class="st20">图像遮罩<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.233em" class="st20">颜色分割图像遮罩<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="2.498em" class="st21">+ GstVideoMeta: </tspan><tspan class="st22" v:langid="2052">描述图</tspan><tspan x="0" dy="1.331em" class="st22" v:langid="2052">像的</tspan><tspan class="st23"> </tspan><tspan class="st23">meta</tspan></text>		</g>	<g id="group158-101" transform="translate(279,-193.5)" v:mid="158" v:groupcontext="group">		<title>Sheet.158</title>		<g id="shape134-102" v:mid="134" v:groupcontext="shape">			<title>Sheet.134</title>			<desc>GstBuffer</desc>			<v:textblock v:margins="rect(7.2,0,0,0)" v:verticalalign="0"></v:textblock>			<v:textrect cx="129.6" cy="306.528" width="259.21" height="163.325"></v:textrect>			<path d="M0 385.14 A2.87066 3.04903 -180 0 0 2.87 388.19 L256.33 388.19 A2.87066 3.04903 -180 0 0 259.2 385.14 L259.2						 227.91 A2.87066 3.04903 -180 0 0 256.33 224.87 L2.87 224.87 A2.87066 3.04903 -180 0 0 -0 227.91 L0 385.14						 Z" class="st6"></path>			<text x="103.48" y="242.87" class="st17" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>GstBuffer</text>			</g>		<g id="shape135-105" v:mid="135" v:groupcontext="shape" transform="translate(9.94952,-65.5886)">			<title>Sheet.135</title>			<desc>+ GstMemory: 包含单个张量 示例1x513x513x3 + GstMemory: 下一个张量等… + ...</desc>			<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>			<v:textrect cx="124.557" cy="355.474" width="249.12" height="65.4342"></v:textrect>			<rect x="0" y="322.757" width="249.115" height="65.4342" class="st3"></rect>			<text x="0" y="334.74" class="st17" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstMemory:<v:tabchar></v:tabchar><tspan dx="2.675em" class="st20">包含单个张量<v:newlinechar></v:newlinechar><v:paragraph v:indentleft="79.2"></v:paragraph><v:tabchar></v:tabchar></tspan><tspan x="108" dy="1.331em" class="st20">示例</tspan><tspan class="st20">：1</tspan><tspan class="st20">x513x513x3<v:newlinechar></v:newlinechar><v:paragraph></v:paragraph></tspan><tspan x="0" dy="1.331em" class="st13">+ GstMemory:<v:tabchar></v:tabchar></tspan><tspan dx="2.675em" class="st20">下一个张量等</tspan><tspan class="st20">…<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.233em" class="st13">+ ...</tspan></text>			</g>		<g id="shape137-116" v:mid="137" v:groupcontext="shape" transform="translate(0.135741,-134.998)">			<title>Sheet.137</title>			<path d="M0 388.19 L259.2 388.19" class="st18"></path>		</g>		<g id="shape138-119" v:mid="138" v:groupcontext="shape" transform="translate(0.135741,-61.1918)">			<title>Sheet.138</title>			<path d="M0 388.19 L259.2 388.19" class="st18"></path>		</g>		<g id="shape136-122" v:mid="136" v:groupcontext="shape" transform="translate(9.94952,-4.5)">			<title>Sheet.136</title>			<desc>+ GstVideoMeta: 描述 raw 数据单个张量的 + GstVideoMeta: 下一个张量条目的 meta ...</desc>			<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>			<v:textrect cx="124.557" cy="363.981" width="249.12" height="48.4196"></v:textrect>			<rect x="0" y="339.771" width="249.115" height="48.4196" class="st3"></rect>			<text x="0" y="351.75" class="st17" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>+ GstVideoMeta:<v:tabchar></v:tabchar><tspan dx="1.511em" class="st20">描述</tspan><tspan class="st24"> </tspan><tspan class="st24">raw </tspan><tspan class="st20">数据单个张量的<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.331em" class="st13">+ GstVideoMeta:<v:tabchar></v:tabchar></tspan><tspan dx="1.511em" class="st20">下一个张量条目的</tspan><tspan class="st25"> </tspan><tspan class="st24">meta<v:newlinechar></v:newlinechar></tspan><tspan x="0" dy="1.233em" class="st13">+ ...</tspan></text>			</g>	</g>	<g id="shape159-134" v:mid="159" v:groupcontext="shape" transform="translate(651.875,-261)">		<title>Sheet.159</title>		<path d="M0 388.19 L149.13 388.19" class="st18"></path>	</g>	<g id="group160-137" transform="translate(691.151,-14.7814)" v:mid="160" v:groupcontext="group">		<title>Sheet.160</title>		<g id="shape79-138" v:mid="79" v:groupcontext="shape" transform="translate(15.1882,5.68434E-14)">			<title>Sheet.79</title>			<desc>Qualcomm</desc>			<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>			<v:textrect cx="27.0853" cy="381.891" width="54.18" height="12.6"></v:textrect>			<rect x="0" y="375.591" width="54.1706" height="12.6" class="st3"></rect>			<text x="0" y="385.04" class="st26" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>Qualcomm  </text>			</g>		<g id="shape80-141" v:mid="80" v:groupcontext="shape" transform="translate(6.29496E-14,-0.218607)">			<title>Sheet.80</title>			<path d="M0 386.69 A1.50003 1.50003 -180 0 0 1.5 388.19 L10.5 388.19 A1.50003 1.50003 -180 0 0 12 386.69 L12 377.69						 A1.50003 1.50003 -180 0 0 10.5 376.19 L1.5 376.19 A1.50003 1.50003 -180 0 0 0 377.69 L0 386.69 Z" class="st11"></path>		</g>		<g id="shape82-143" v:mid="82" v:groupcontext="shape" transform="translate(89.1246,5.68434E-14)">			<title>Sheet.82</title>			<desc>开源</desc>			<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>			<v:textrect cx="10.5" cy="381.891" width="21.01" height="12.6"></v:textrect>			<rect x="0" y="375.591" width="21" height="12.6" class="st3"></rect>			<text x="0" y="385.04" class="st27" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>开源</text>			</g>		<g id="shape83-146" v:mid="83" v:groupcontext="shape" transform="translate(73.9363,-0.218607)">			<title>Sheet.83</title>			<path d="M0 386.69 A1.50003 1.50003 -180 0 0 1.5 388.19 L10.5 388.19 A1.50003 1.50003 -180 0 0 12 386.69 L12 377.69						 A1.50003 1.50003 -180 0 0 10.5 376.19 L1.5 376.19 A1.50003 1.50003 -180 0 0 0 377.69 L0 386.69 Z" class="st6"></path>		</g>	</g></g>
</svg>

## 继承链

[GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → [GstBaseTransform](https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html?gi-language=c) → GstMLVideoSegmentation

下表提供了有关 qtimlvsegmentation 的端口模板和元素属性的信息。有关用例信息，请参见在 [Qualcomm Neural Processing SDK 用例](https://docs.qualcomm.com/doc/80-70022-50SC/topic/qualcomm-neural-processing-sdk-use-cases.html)和 [LiteRT 用例](https://docs.qualcomm.com/doc/80-70022-50SC/topic/tensorflow-lite-use-cases.html)中的分割使用案例。

## 端口配置

| 端口名称 | 功能 | 功能 | 功能 |
| --- | --- | --- | --- |
| SINK 模板：'sink'<br><ul class="ul" id="qtimlvsegmentation__ul_khm_shg_t1c"><br>                                    <li class="li"><em class="ph i">可用性：</em> 按需</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 接收</li><br><br>                                </ul> | neural-network/tensors | – | – |
| SRC 模板：'src'<br><ul class="ul" id="qtimlvsegmentation__ul_wns_shg_t1c"><br>                                    <li class="li"><em class="ph i">可用性：</em> 始终可用</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 发送</li><br><br>                                </ul> | video/x-raw | format： | { (string)BGRA, (string)BGRx, (string)BGR16 } |
| SRC 模板：'src'<br><ul class="ul" id="qtimlvsegmentation__ul_wns_shg_t1c"><br>                                    <li class="li"><em class="ph i">可用性：</em> 始终可用</li><br><br>                                    <li class="li"><em class="ph i">方向：</em> 发送</li><br><br>                                </ul> | text/x-raw | format： | { (string)utf8 } |
|  |  |  |  |

## 元素配置

Table : qtimlvsegmentation 的元素属性

| 属性 | 说明 |
| --- | --- |
| name | 对象名称<ul class="ul" id="qtimlvsegmentation__ul_w1w_4l3_nyb"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">字符串。默认：“mlvideosegmentation0”</li><br><br>                                </ul> |
| parent | 对象的父级<ul class="ul" id="qtimlvsegmentation__ul_x1w_4l3_nyb"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">"GstObject" 类型的对象</li><br><br>                                </ul> |
| qos | 处理服务质量事件<ul class="ul" id="qtimlvsegmentation__ul_y1w_4l3_nyb"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">Boolean。默认值：false</li><br><br>                                </ul> |
| module | 用于处理张量的模块名称。<ul class="ul" id="qtimlvsegmentation__ul_z1w_4l3_nyb"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li"><br>                                        <p class="p">枚举 “GstMLVideoSegmentationModules” 默认：0，“none”</p><ul class="ul" id="qtimlvsegmentation__ul_ur2_pl3_nyb"><br>                                            <li class="li"> (0): none - 无模块，默认无效模式</li><br><br>                                            <li class="li"> (1): deeplab-argmax - ml-vsegmentation-deeplab-argmax</li><br><br>                                            <li class="li"> (2): midas-v2 - ml-vsegmentation-midas-v2</li><br><br>                                        </ul><br><br>                                    </li><br><br>                                </ul> |
| labels | 标签的文件名。<ul class="ul" id="qtimlvsegmentation__ul_abw_4l3_nyb"><br>                                    <li class="li">标志：可读、可写</li><br><br>                                    <li class="li">字符串。默认值：null</li><br><br>                                </ul> |

**Parent Topic:** [配置 ML 插件](https://docs.qualcomm.com/doc/80-70022-50SC/topic/inferencing-plugins.html)

Last Published: Nov 05, 2025

[Previous Topic
qtimlvdetection](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/qtimlvdetection.md) [Next Topic
qtimlvpose](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/qtimlvpose.md)