# Image segmentation 

Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/gst-ai-segmentation.html](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-ai-segmentation.html)

The **gst-ai-segmentation** application allows you to divide an image into
        different and meaningful parts or segments and assign a label to each homogenous segment
        based on the similarity of the attributes. The application uses Qualcomm Neural Processing
        SDK runtime, Qualcomm AI Engine direct runtime, and LiteRT for image
        segmentation.

The following figure shows the pipeline, which receives the input from a live camera
            feed, file, or an RTSP stream, preprocesses the video data, runs inferences using AI
            hardware, and displays the segmented data on the screen.

For information about the plugins used in the pipeline flow, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-ai-segmentation.html#gst-ai-segmentation__section_xb4_p1s_lbc).

Figure : gst-ai-segmentation pipeline
            
            <!--?xml version="1.0" encoding="UTF-8"?-->
<svg xmlns="http://www.w3.org/2000/svg" width="1302.5443115234375" height="424" viewbox="0 0 1302.5443115234375 424">
  <g id="Layer_2" data-name="Layer 2">
    <g>
      <rect x=".500244140625" y=".499847412109403" width="1301.54443359375" height="423.00048828125" rx="7.499999999999999" ry="7.499999999999999" style="fill: #fafafa;"></rect>
      <path d="M1294.5443115234375,1c3.85986328125,0,7,3.140167236328125,7,7v408c0,3.859832763671875-3.14013671875,7-7,7H8c-3.859832763671875,0-7-3.140167236328125-7-7V8c0-3.859832763671875,3.140167236328125-7,7-7h1286.5443115234375M1294.5443115234375,0H8C3.581817626953125,0,0,3.581666946411133,0,8v408c0,4.4183349609375,3.581817626953125,8,8,8h1286.5443115234375c4.41815185546875,0,8-3.5816650390625,8-8V8c0-4.418333053588867-3.58184814453125-8-8-8h0Z" style="fill: #d2d7e1;"></path>
    </g>
  </g>
  <g id="Layer_3" data-name="Layer 3">
    <g>
      <g>
        <g>
          <text transform="translate(1109.232940673828125 404.228233337402344)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">Qualcomm </tspan></text>
          <rect x="1088.981932954719014" y="392.136734455021724" width="16" height="16" rx="2" ry="2" style="fill: #2a2aea;"></rect>
        </g>
        <g>
          <text transform="translate(1207.814712524414062 404.228233337402344)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">Open source</tspan></text>
          <rect x="1187.563714367572175" y="392.136734455021724" width="16" height="16" rx="2" ry="2" style="fill: #007884;"></rect>
        </g>
      </g>
      <rect x="1063.544330343544061" y="15.863265544978276" width="104.000000000003638" height="359.273468910043448" rx="8" ry="8" style="fill: #2a2aea;"></rect>
      <g>
        <line x1="1167.5443115234375" y1="189.83355712890625" x2="1180.1875" y2="189.83355712890625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <polygon points="1179.02032470703125 193.8226318359375 1185.92852783203125 189.83355712890625 1179.02032470703125 185.844497680664062 1179.02032470703125 193.8226318359375"></polygon>
      </g>
      <line x1="1235.997806833402137" y1="161.742486620694763" x2="1235.997806833402137" y2="146.24620386359129" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
      <text transform="translate(1072.792236328125 199.591644287109375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtivcomposer</tspan></text>
      <g>
        <rect x="1185.997806833400318" y="162.446491809498184" width="100.000000000003638" height="54.774142029076756" rx="4" ry="4" style="fill: #007884;"></rect>
        <text transform="translate(1194.900390625 193.924407958984375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">Waylandsink </tspan></text>
      </g>
      <g>
        <g>
          <rect x="1214.997806833402137" y="105.587166995032021" width="42" height="29.400000000001455" rx="4" ry="4" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></rect>
          <line x1="1227.597806833397044" y1="143.387166995029474" x2="1244.397806833394498" y2="143.387166995029474" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></line>
        </g>
        <line x1="1235.997806833402137" y1="134.987166995033476" x2="1235.997806833402137" y2="143.387166995029474" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></line>
      </g>
      <g>
        <g>
          <path d="M46.851192190033544,185.521277102798194h-9l-4.5,5.400000000001455h-5.400000000001455c-1.988224983215332,0-3.599999999998545,1.611775016783213-3.599999999998545,3.599999999998545v16.200000000000728c0,1.988226699828374,1.611775016783213,3.600000000002183,3.599999999998545,3.600000000002183h28.80000000000291c1.988226699828374,0,3.599999999998545-1.611773300173809,3.599999999998545-3.600000000002183v-16.200000000000728c0-1.988224983215332-1.611773300170171-3.599999999998545-3.599999999998545-3.599999999998545h-5.400000000001455l-4.5-5.400000000001455Z" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
          <circle cx="42.351192190033544" cy="199.92127710279965" r="5.400000000001455" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></circle>
        </g>
        <rect x="73.916518424694004" y="171.92127710279965" width="86" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="159.91650390625" y1="221.921279907226562" x2="591.442916870117188" y2="221.921279907226562" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="590.275726318359375 225.91033935546875 597.18389892578125 221.921279907226562 590.275726318359375 217.932220458984375 590.275726318359375 225.91033935546875"></polygon>
        </g>
        <line x1="61.247555725591155" y1="201.92127710279965" x2="73.916518424694004" y2="201.92127710279965" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <rect x="597.183900873971652" y="191.92127710279965" width="120.000000000007276" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="717.18389892578125" y1="221.921279907226562" x2="729.82708740234375" y2="221.921279907226562" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="728.659912109375 225.91033935546875 735.568084716796875 221.921279907226562 728.659912109375 217.932220458984375 728.659912109375 225.91033935546875"></polygon>
        </g>
        <rect x="735.637377363831547" y="191.92127710279965" width="110.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="845.63739013671875" y1="221.921279907226562" x2="858.28057861328125" y2="221.921279907226562" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="857.113372802734375 225.91033935546875 864.02154541015625 221.921279907226562 857.113372802734375 217.932220458984375 857.113372802734375 225.91033935546875"></polygon>
        </g>
        <rect x="864.090853853687804" y="191.92127710279965" width="145.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="1009.09088134765625" y1="221.921279907226562" x2="1057.73406982421875" y2="221.921279907226562" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 225.91033935546875 1063.47503662109375 221.921279907226562 1056.56683349609375 217.932220458984375 1056.56683349609375 225.91033935546875"></polygon>
        </g>
        <text transform="translate(80.631378173828125 205.443267822265625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtiqmmfsrc</tspan></text>
        <text transform="translate(608.64532470703125 226.012298583984375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlvconverter</tspan></text>
        <text transform="translate(757.8450927734375 209.212371826171875)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimltflite/</tspan><tspan x="-2.73095703125" y="16.7998046875">qtimlsnpe/ </tspan><tspan x="3.55810546875" y="33.60009765625">qtimlqnn </tspan></text>
        <text transform="translate(882.09832763671875 226.012298583984375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlpostprocess</tspan></text>
        <text transform="translate(1013.854248046875 216.344329833984375)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_1</tspan></text>
        <g>
          <line x1="159.91650390625" y1="181.921279907226562" x2="1057.73406982421875" y2="181.921279907226562" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 185.91033935546875 1063.47503662109375 181.921279907226562 1056.56683349609375 177.932220458984375 1056.56683349609375 185.91033935546875"></polygon>
        </g>
        <text transform="translate(1013.85443115234375 175.3946533203125)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_0</tspan></text>
      </g>
      <g>
        <rect x="73.916518424694004" y="314.614165271797901" width="86" height="60" rx="4" ry="4" style="fill: #007884;"></rect>
        <g>
          <line x1="159.91650390625" y1="344.614166259765625" x2="172.559707641601562" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="171.39251708984375 348.603240966796875 178.300689697265625 344.614166259765625 171.39251708984375 340.625091552734375 171.39251708984375 348.603240966796875"></polygon>
        </g>
        <line x1="61.247555725591155" y1="344.614165271797901" x2="73.916518424694004" y2="344.614165271797901" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <rect x="178.369994914549352" y="314.614165271797901" width="95" height="60" rx="4" ry="4" style="fill: #007884;"></rect>
        <g>
          <line x1="273.369995117186591" y1="344.614166259765625" x2="286.01318359375" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="284.845993041992188 348.603240966796875 291.754165649414062 344.614166259765625 284.845993041992188 340.625091552734375 284.845993041992188 348.603240966796875"></polygon>
        </g>
        <rect x="291.8234714044047" y="314.614165271797901" width="95" height="60" rx="3.999999999999999" ry="3.999999999999999" style="fill: #007884;"></rect>
        <g>
          <line x1="386.823471069335938" y1="344.614166259765625" x2="399.466665267944336" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="398.299472808837891 348.603240966796875 405.207649230957031 344.614166259765625 398.299472808837891 340.625091552734375 398.299472808837891 348.603240966796875"></polygon>
        </g>
        <rect x="405.276947894260957" y="314.614165271797901" width="95" height="60" rx="3.999999999999999" ry="3.999999999999999" style="fill: #007884;"></rect>
        <g>
          <line x1="500.276947021484375" y1="344.614166259765625" x2="512.920143127441406" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="511.752952575683594 348.603240966796875 518.661125183105469 344.614166259765625 511.752952575683594 340.625091552734375 511.752952575683594 348.603240966796875"></polygon>
        </g>
        <g>
          <line x1="578.730422973632812" y1="344.614166259765625" x2="591.373611450195312" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="590.206420898438409 348.603240966796875 597.114608764648438 344.614166259765625 590.206420898438409 340.625091552734375 590.206420898438409 348.603240966796875"></polygon>
        </g>
        <rect x="597.183900873971652" y="314.614165271797901" width="120.000000000007276" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="717.18389892578125" y1="344.614166259765625" x2="729.82708740234375" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="728.659912109375 348.603240966796875 735.568084716796875 344.614166259765625 728.659912109375 340.625091552734375 728.659912109375 348.603240966796875"></polygon>
        </g>
        <rect x="735.637377363831547" y="314.614165271797901" width="110.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="845.63739013671875" y1="344.614166259765625" x2="858.28057861328125" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="857.113372802734375 348.603240966796875 864.02154541015625 344.614166259765625 857.113372802734375 340.625091552734375 857.113372802734375 348.603240966796875"></polygon>
        </g>
        <rect x="864.090853853687804" y="314.614165271797901" width="145.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="1009.09088134765625" y1="344.614166259765625" x2="1057.73406982421875" y2="344.614166259765625" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 348.603240966796875 1063.47503662109375 344.614166259765625 1056.56683349609375 340.625091552734375 1056.56683349609375 348.603240966796875"></polygon>
        </g>
        <text transform="translate(93.349639892578125 348.136260986328125)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">rtspsrc </tspan></text>
        <text transform="translate(199.906890869140625 341.305816650390625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">rtph264 </tspan><tspan x="5.52685546875" y="16.7998046875">depay </tspan></text>
        <text transform="translate(306.254783630371094 348.705718994140625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">h264parse</tspan></text>
        <text transform="translate(411.795318603515625 348.705535888671875)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">V4l2h264dec</tspan></text>
        <g>
          <rect x="518.730424384115395" y="294.614165271797901" width="60.000000000001819" height="80.522569183223823" rx="4" ry="4" style="fill: #007884;"></rect>
          <text transform="translate(539.026824951171875 338.966644287109375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">tee</tspan></text>
        </g>
        <text transform="translate(608.64532470703125 348.120941162109375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlvconverter</tspan></text>
        <text transform="translate(757.8450927734375 331.905731201171875)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimltflite/</tspan><tspan x="-2.73095703125" y="16.7998046875">qtimlsnpe/ </tspan><tspan x="3.55810546875" y="33.60009765625">qtimlqnn </tspan></text>
        <text transform="translate(882.09832763671875 348.705413818359375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlpostprocess</tspan></text>
        <text transform="translate(1013.854248046875 338.065643310546875)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_1</tspan></text>
        <g>
          <line x1="578.730422973632812" y1="304.616455078125" x2="1057.73406982421875" y2="304.616455078125" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 308.60552978515625 1063.47503662109375 304.616455078125 1056.56683349609375 300.627410888671875 1056.56683349609375 308.60552978515625"></polygon>
        </g>
        <text transform="translate(1013.85443115234375 299.937286376953125)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_0</tspan></text>
        <g>
          <path d="M38.75119219003318,340.964165271794627c.001393890381223-.745582866666155.606937980652219-1.348867893218994,1.352521705628533-1.347474002834133.248203468321663.000463485717773.491475105285645.069345188137959.703078651427859.199073982235859l6.595199203491575,4.048200130462646c.635238075255984.390344238281614.833762741087412,1.221743202209836.443418502807617,1.85698127746582-.110953330993652.180562019348145-.262856483459473.332465171813965-.443418502807617.443418502807617l-6.595199203491575,4.05000000000291c-.63563804626574.389691925047373-1.466832733154661.190314102170305-1.856524658203853-.445323944091797-.130368232727051-.212645530700684-.199274826049077-.457250976563955-.199075698852539-.706676673891707v-8.098199272157217Z" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
          <path d="M33.351192190033544,364.814165271798629h18" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
          <rect x="24.351192190033544" y="332.414165271797174" width="36" height="25.199999999998909" rx="2" ry="2" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></rect>
        </g>
      </g>
      <g>
        <g>
          <rect x="518.730424384115395" y="29.53075786431873" width="60.000000000001819" height="80.522569183223823" rx="4" ry="4" style="fill: #007884;"></rect>
          <text transform="translate(539.026824951171875 73.88330078125)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">tee</tspan></text>
        </g>
        <g>
          <path d="M49.101192190033544,55.553327047542552h-20.25c-2.485281229017346,0-4.5,2.014718770980835-4.5,4.5v36c0,2.485283374786377,2.014718770982654,4.5,4.5,4.5h27c2.485283374786377,0,4.5-2.014716625213623,4.5-4.5v-29.25l-11.25-11.25Z" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
          <path d="M46.851192190033544,55.553327047542552v9c0,2.485281229019165,2.014718770980835,4.5,4.5,4.5h9" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
          <path d="M37.851192190033544,75.803327047542552l11.25,6.75-11.25,6.75v-13.5Z" style="fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"></path>
        </g>
        <rect x="73.916518424694004" y="48.053327047542552" width="86" height="60" rx="4" ry="4" style="fill: #007884;"></rect>
        <g>
          <line x1="159.91650390625" y1="78.053329467773438" x2="172.559707641601562" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="171.39251708984375 82.042388916015625 178.300689697265625 78.053329467773438 171.39251708984375 74.064262390136719 171.39251708984375 82.042388916015625"></polygon>
        </g>
        <line x1="61.247555725591155" y1="78.053327047542552" x2="73.916518424694004" y2="78.053327047542552" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <rect x="178.369994914549352" y="48.053327047542552" width="95" height="60" rx="4" ry="4" style="fill: #007884;"></rect>
        <g>
          <line x1="273.369995117186591" y1="78.053329467773438" x2="286.01318359375" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="284.845993041992188 82.042388916015625 291.754165649414062 78.053329467773438 284.845993041992188 74.064262390136719 284.845993041992188 82.042388916015625"></polygon>
        </g>
        <rect x="291.8234714044047" y="48.053327047542552" width="95" height="60" rx="3.999999999999999" ry="3.999999999999999" style="fill: #007884;"></rect>
        <g>
          <line x1="386.823471069335938" y1="78.053329467773438" x2="399.466665267944336" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="398.299472808837891 82.042388916015625 405.207649230957031 78.053329467773438 398.299472808837891 74.064262390136719 398.299472808837891 82.042388916015625"></polygon>
        </g>
        <rect x="405.276947894260957" y="48.053327047542552" width="95" height="60" rx="3.999999999999999" ry="3.999999999999999" style="fill: #007884;"></rect>
        <g>
          <line x1="500.276947021484375" y1="78.053329467773438" x2="512.920143127441406" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="511.752952575683594 82.042388916015625 518.661125183105469 78.053329467773438 511.752952575683594 74.064262390136719 511.752952575683594 82.042388916015625"></polygon>
        </g>
        <g>
          <line x1="578.730422973632812" y1="78.053329467773438" x2="591.373611450195312" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="590.206420898438409 82.042388916015625 597.114608764648438 78.053329467773438 590.206420898438409 74.064262390136719 590.206420898438409 82.042388916015625"></polygon>
        </g>
        <rect x="597.183900873971652" y="48.053327047542552" width="120.000000000007276" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="717.18389892578125" y1="78.053329467773438" x2="729.82708740234375" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="728.659912109375 82.042388916015625 735.568084716796875 78.053329467773438 728.659912109375 74.064262390136719 728.659912109375 82.042388916015625"></polygon>
        </g>
        <rect x="735.637377363831547" y="48.053327047542552" width="110.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="845.63739013671875" y1="78.053329467773438" x2="858.28057861328125" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="857.113372802734375 82.042388916015625 864.02154541015625 78.053329467773438 857.113372802734375 74.064262390136719 857.113372802734375 82.042388916015625"></polygon>
        </g>
        <rect x="864.090853853687804" y="48.053327047542552" width="145.000000000003638" height="60" rx="4" ry="4" style="fill: #2a2aea;"></rect>
        <g>
          <line x1="1009.09088134765625" y1="78.053329467773438" x2="1057.73406982421875" y2="78.053329467773438" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 82.042388916015625 1063.47503662109375 78.053329467773438 1056.56683349609375 74.064262390136719 1056.56683349609375 82.042388916015625"></polygon>
        </g>
        <text transform="translate(97.738311767578125 81.57550048828125)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">filesrc</tspan></text>
        <text transform="translate(198.485015869140625 82.14508056640625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtdemux</tspan></text>
        <text transform="translate(306.254783630371094 82.14495849609375)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">h264parse</tspan></text>
        <text transform="translate(411.795318603515625 82.144775390625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">V4l2h264dec</tspan></text>
        <text transform="translate(608.64532470703125 81.5601806640625)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlvconverter</tspan></text>
        <text transform="translate(757.8450927734375 65.344940185546875)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimltflite/</tspan><tspan x="-2.73095703125" y="16.7998046875">qtimlsnpe/ </tspan><tspan x="3.55810546875" y="33.60009765625">qtimlqnn </tspan></text>
        <text transform="translate(882.09832763671875 82.1446533203125)" style="fill: #fff; font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">qtimlpostprocess</tspan></text>
        <text transform="translate(1013.854248046875 71.5048828125)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_1</tspan></text>
        <g>
          <line x1="578.730422973632812" y1="38.051326751708984" x2="1057.73406982421875" y2="38.051326751708984" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
          <polygon points="1056.56683349609375 42.040390014648438 1063.47503662109375 38.051326751708984 1056.56683349609375 34.062263488769531 1056.56683349609375 42.040390014648438"></polygon>
        </g>
        <text transform="translate(1013.85443115234375 33.530792236328125)" style="font-family: Roboto-Regular, Roboto; font-size: 14px;"><tspan x="0" y="0">sink_0</tspan></text>
      </g>
      <text transform="translate(16.239166259765625 38.5308837890625)" style="font-family: Roboto-Bold, Roboto; font-size: 14px; font-weight: 700;"><tspan x="0" y="0">File (default)</tspan></text>
      <text transform="translate(16.239166259765625 159.55029296875)" style="font-family: Roboto-Bold, Roboto; font-size: 14px; font-weight: 700;"><tspan x="0" y="0">Camera (optional)</tspan></text>
      <g>
        <line x1="16.239349365234375" y1="129.654373168945312" x2="20.239349365234375" y2="129.654373168945312" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <line x1="24.252105712890625" y1="129.654373168945312" x2="1057.5379638671875" y2="129.654373168945312" style="fill: none; stroke: #000; stroke-dasharray: 8.025521278381348 4.012760639190674; stroke-miterlimit: 10;"></line>
        <line x1="1059.5443115234375" y1="129.654373168945312" x2="1063.5443115234375" y2="129.654373168945312" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
      </g>
      <g>
        <line x1="16.239349365234375" y1="265.159393310546875" x2="20.239349365234375" y2="265.159393310546875" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
        <line x1="24.252105712890625" y1="265.159393310546875" x2="1057.5379638671875" y2="265.159393310546875" style="fill: none; stroke: #000; stroke-dasharray: 8.025521278381348 4.012760639190674; stroke-miterlimit: 10;"></line>
        <line x1="1059.5443115234375" y1="265.159393310546875" x2="1063.5443115234375" y2="265.159393310546875" style="fill: none; stroke: #000; stroke-miterlimit: 10;"></line>
      </g>
      <text transform="translate(24.3509521484375 302.937591552734375)" style="font-family: Roboto-Bold, Roboto; font-size: 14px; font-weight: 700;"><tspan x="0" y="0">RTSP (optional)</tspan></text>
    </g>
  </g>
</svg>

## Sample model and label files

| Runtime | Model files | Label files |
| --- | --- | --- |
| Qualcomm Neural Processing SDK | <var class="keyword varname">deeplabv3_resnet50.dlc</var> | <var class="keyword varname">deeplabv3_resnet50.json</var> |
| LiteRT | <var class="keyword varname">deeplabv3_plus_mobilenet_quantized.tflite</var> | <var class="keyword varname">deeplabv3_resnet50.json</var> |
| Qualcomm AI Engine direct | <var class="keyword varname">deeplabv3_plus_mobilenet_quantized.bin</var> | <var class="keyword varname">deeplabv3_resnet50.json</var> |
|  |  |  |
|  |  |  |

## Run the application on the target device

The sample application uses the
                    /etc/configs/config\_segmentation.json file to read the
                input parameters.

To create your own config JSON file, use [config_segmentation.json](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-sample-apps/gst-ai-segmentation/config_segmentation.json?ref_type=heads) as a
                reference.

1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70022-50/topic/download-model-and-label-files.html).
2. Update the config JSON file based on the model, input stream, and other
                    properties. For more information, see [Config JSON field description](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-ai-segmentation.html#gst-ai-segmentation__section_ict_rdr_32c).
3. Use the following format of the config\_segmentation.json
                        file:

        { 
          "file-path": "<input-video-path>",
          "ml-framework": "<snpe, tflite, or qnn framework>",
          "model": "<path-to-model-file>",
          "labels": "<path-to-label-file>",
          "runtime": "<dsp, gpu, or cpu runtime>"
        }Copy to clipboard

    For example, run the application using the
                            DeepLabV3-Plus-MobileNet LiteRT model, DSP runtime,
                        and custom model and label paths from the video
                    file:

        {
        "file-path": "/etc/media/video.mp4",
        "ml-framework": "tflite",
        "model": "/etc/models/deeplabv3_plus_mobilenet_quantized.tflite",
        "labels": "/etc/labels/deeplabv3_resnet50.json",
        "runtime": "dsp"
        }Copy to clipboard
4. Run the gst-ai-segmentation application:

        gst-ai-segmentation --config-file=/etc/configs/config_segmentation.jsonCopy to clipboard
5. To display the available help options, run the following command in the SSH
                    shell:

        gst-ai-segmentation -hCopy to clipboard
6. To stop the use case, use CTRL +
                    C.

## Expected output

The segmented data is displayed on the local display.

Figure : Expected output for gst-ai-segmentation application
                
                ![](data:image/png;base64,UklGRiwyAABXRUJQVlA4ICAyAACw+AGdASrPAyQCPwF4slM/v7+0KTQ6w/AgCWct0XvSJB8GtdOM6UqvQf0roo8R74b1A+OHaem2MRWKrz3gvezV0bHFha7eD/z0qLcB3/o9DXx//g//HmH8/P8P+J6c+0P4P/78c/+Wy7dent6yPcX///abX+TfhDf864Ngo3Tkb0EisuAWJVuNZhpSIoXoER4od/AZJ1ZXtFAXnakTwRdIR1mtBCOs1oIR1mss1qBCVGwEL7lxw0MJdQtotYoDt6tTkmOG3zfNy/raksLunibMc4dvLdPpC6wHNheNT2NiyhBhAWLQgwgLFoQYQFi0IMICxaEGEBYgOIwx72T2qhLR7GxZQgwgLFoO/2qcUv+hEfYLStTTh8M26ogSH0TphXPPbgzcdWiqjg7ubLnoCfLwpoFhTaOVQ8+OemLKJsa0wVyPb7tC19MWaeROc/SihgfEEzmQ/8g9NwCc6CfqR6T9HbWJe4TDZ92ZWqFrvCX3KsXX47MhBMUMO4s+XXenHlrTFmnkTnFz2GVc/tTkN25HpMIwgyMutskc3PTcAnOgn6kh5iy6HgDwuIpB+fHPTFmnkTnA+phappmzq3IU9gIbbofynOgF9d92v+BFgsE/UkPPcqFyT6epDOtbIl//Pf4MmE8Y7uE1fl52doWvpizTyJHNllSCyt7GYU8S3nQT9SQ8+NuokKlfl2ewtVrwf4uvu01p5E50E/RSeYxR2XMaWe2mvLln/tHaNGZRGlpxZizTyJzoJayIM+yuxnb+vG/IqCbgE50E/RGOf+ngnotBuDLvIp/QmgwpSv4VHNQzWFvnQT9SQ8+M/Srl6tBcepHz+oSVXPwOwKlO/lUPPjnpizSotNdsyPHiAqyGH/pp5E50E/fKIX4YPHATPFWN2DNN0A+B6vA7hXKHnxz0uv1DQRuEx7fINbN1/cuas5cge9YklrAxj3z456Ys08iSdGNun8om21rgLia0LX0xZp48iSW2aULia9aME86cITsKRw3fTFmnkTnBbzslUTay3/3sDjxOboWhN3+1dL0ZsOFS13U2LlRUCf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dxzR/ILhl6zPdrzgcBve6QASjKOgrSKa7JWGHnjrWfiUvTa2UlACx3gYcyqAPiC1zlx8DH6PGqqZ9Wp+NfoM0DLaORPkmeOIRyjSAZaV2/EFKBuALeDtxA/pjVPvuNKDV3W/Sp26SA+J3RmsVo0a2a00kp2eTc7nOREMacXzVU6EqTESbI995FIcc/XQ3h+ZHvVCFxn+qDL2FR2Y8tODZqL+gL0ulnWy/P2d1Zb9mMoDm5CAFeG0PjDP/6kDPZf6JiuhcQtb/G7Ph+PbnKqmKUUNU/VFefdxjFlJe7DS8yC1IE/S3dG1TFCpFhAJkDMJEHXXdbCnPVX9+esSVlLqvHOYO53DtW+fjKocP429LCaORwGGUMhD6x3oEXVlFs9Ljl6fTE53GgDxuD0y1VI5OWTdC4mQzw9Fi14xKKeQsEJ+R57bmxidtgAv4GPPPQhPExx+G53HJf4mbr9uiQJlBtSyolzTDmBwTlb4fQKcwCFTL5bOjOs8ITv0z/bc9H3GPvjnaolnbvOcqH7j0NBo+KTNYQQXbwr5t8XIiLuZppLKZuiO6JHKRXHiEKeeqnw+gomE/DlwlYFkZHms/empUh2fGIEpPsUnzN3Cb/T/c4EZCaMI42CbOdz1vLLizzgvAYksEXNwqtphPN2LlhTA3ebff3Gx98IBRTmx2B3DB928D9db8UHsJO9ua+dj6/OhKXraS+dIE7hUt2SnOh8u5upyGlXJXwn+BS8Sfk95vCUwAXFjmmyqMDgDIVMW9z5vFRBlSKi/5xE32CVBCLXkQsS+cA2qOKs2DIbCqpk3AgTx2iFoOBqbO7lPrxNG/pQRLK6iVS5B+jd7CsAe/KkWJTer2eC8WaC+MvHQtLoEp3C76hJdMFW9q++95KhFbdqY+Aoe3AAA)

## Pipeline flow

The following table lists the plugins used in the image segmentation
                    pipeline:

| Plugin | Description |
| --- | --- |
| Camera source:[qtiqmmfsrc](https://docs.qualcomm.com/doc/80-70022-50/topic/qtiqmmfsrc.html) | <ul class="ul" id="gst-ai-segmentation__ul_zyl_gj1_mcc"><br>                                    <li class="li">Captures the live stream from camera.</li><br><br>                                    <li class="li">Uses tee to split the stream for inferencing.</li><br><br>                                </ul> |
| File source: filesrc | <ul class="ul" id="gst-ai-segmentation__ul_z1z_x4f_w1c"><br>                                    <li class="li">Captures the video stream using filesrc, followed by<br>                                        qtdemux, which demultiplexes the stream.</li><br><br>                                    <li class="li">Uses tee to split the stream for inferencing.</li><br><br>                                </ul> |
| RTSP source: rtspsrc | <ul class="ul" id="gst-ai-segmentation__ul_vsj_2r4_tbc"><br>                                    <li class="li">Captures the RTSP stream using rtspsrc, followed by<br>                                        rtph264depay for video extraction.</li><br><br>                                    <li class="li">Uses tee to split the stream for inferencing.</li><br><br>                                </ul> |
| h264parse | Parses the H.264 video. |
| [v4l2h264dec](https://docs.qualcomm.com/doc/80-70022-50/topic/v4l2h264dec.html) | Decodes the video. |
| [qtimlvconverter](https://docs.qualcomm.com/doc/80-70022-50/topic/qtimlvconverter.html) | <ol class="ol" id="gst-ai-segmentation__ol_j34_ddg_q1c"><br>                                    <li class="li">Receives the video stream on its sink pad.</li><br><br>                                    <li class="li">Performs the following preprocessing on the stream data.<br>                                        This preprocessing is done when the model expects<br>                                        floating-point values as input.<ol class="ol" type="a" id="gst-ai-segmentation__ol_m5z_cpr_lbc"><br>                                            <li class="li">Color conversion</li><br><br>                                            <li class="li">Scaling (up or down)</li><br><br>                                            <li class="li">Normalization</li><br><br>                                        </ol><br></li><br><br>                                    <li class="li">Converts the preprocessed video stream to a tensor stream on<br>                                        its source pad.</li><br><br>                                </ol><br><br>                                <br>The tensor stream is used for inferencing in the later stages of<br>                                    the pipeline. |
| Inferencing plugins:<ul class="ul" id="gst-ai-segmentation__ul_k3l_35k_pdc"><br>                                    <li class="li"><a href="https://docs.qualcomm.com/doc/80-70022-50/topic/qtimlsnpe.html">qtimlsnpe</a></li><br><br>                                    <li class="li"><a href="https://docs.qualcomm.com/doc/80-70022-50/topic/qtimltflite.html">qtimltflite</a></li><br><br>                                    <li class="li"><a href="https://docs.qualcomm.com/doc/80-70022-50/topic/qtimlqnn.html">qtimlqnn</a></li><br><br>                                </ul> | <ol class="ol" id="gst-ai-segmentation__ol_l2x_zjq_nbc"><br>                                    <li class="li">After the inference runtime receives the tensor stream on<br>                                        its sink pad, it runs the inference.</li><br><br>                                    <li class="li">Produces a tensor stream with the inference results on its<br>                                        source pad.</li><br><br>                                </ol> |
| qtimlpostprocess | Converts the inference tensors received on sink pad into video<br>                                formats that the multimedia plugins use for further<br>                                processing. |
| [qtivcomposer](https://docs.qualcomm.com/doc/80-70022-50/topic/qtivcomposer.html) | <ol class="ol" id="gst-ai-segmentation__ul_mr1_d1s_lbc"><br>                                    <li class="li">Composes frames by combining content from its sink pads. </li><br><br>                                    <li class="li">Pushes the GStreamer buffers containing these composed<br>                                        frames to its source pad.</li><br><br>                                </ol> |
| [Waylandsink](https://docs.qualcomm.com/doc/80-70022-50/topic/waylandsink.html) | <ol class="ol" id="gst-ai-segmentation__ol_hgj_kqr_lbc"><br>                                    <li class="li">Forwards the video stream received on its sink pad to<br>                                        Weston.</li><br><br>                                    <li class="li">Weston renders the video stream on a local display.</li><br><br>                                </ol> |

## Config JSON field description

The different parameters available to configure the JSON file and run the use case
                are as follows:

Table : Field description–config_segmentation.json file

| Field | Values/description |
| :--- | :--- |
| **ml-framework** | Enable and use one of the following models:<ul class="ul" id="gst-ai-segmentation__ul_prm_gck_32c"><br>                                    <li class="li"><code class="ph codeph">snpe</code>: Qualcomm Neural Processing SDK</li><br><br>                                    <li class="li"><code class="ph codeph">tflite</code>: LiteRT</li><br><br>                                    <li class="li"><code class="ph codeph">qnn</code>: Qualcomm AI Engine direct</li><br><br>                                </ul> |
| **runtime** | Enable and use one of the following runtimes:<ul class="ul" id="gst-ai-segmentation__ul_mry_nck_32c"><br>                                    <li class="li"><code class="ph codeph">cpu</code></li><br><br>                                    <li class="li"><code class="ph codeph">gpu</code></li><br><br>                                    <li class="li"><code class="ph codeph">dsp</code></li><br><br>                                </ul> |
| **Input source** | Enable and use one of the following input sources:<ul class="ul" id="gst-ai-segmentation__ul_xym_rck_32c"><br>                                    <li class="li"><code class="ph codeph">camera</code>: Primary (0) or secondary (1).</li><br><br>                                    <li class="li"><code class="ph codeph">file-path</code>: The directory path to the video<br>                                        file.</li><br><br>                                    <li class="li"><code class="ph codeph">rtsp-ip-port</code>: The address of the RTSP<br>                                        stream:<br>                                                <u class="ph u"><var class="keyword varname">rtsp://&lt;ip&gt;:&lt;port&gt;/&lt;stream&gt;</var></u>.</li><br><br>                                </ul> |

## Related information

- [Image segmentation and display with LiteRT](https://docs.qualcomm.com/doc/80-70022-50/topic/single-camera-stream-with-image-segmentation-and-display.html)
- [Image segmentation and encode with LiteRT](https://docs.qualcomm.com/doc/80-70022-50/topic/single-camera-stream-with-image-segmentation-and-encode.html)
- [Image segmentation and display with Neural Processing SDK](https://docs.qualcomm.com/doc/80-70022-50/topic/single-camera-stream-with-image-segmentation-and-display-with-deeplabv3-quantized.html)
- [Image segmentation and encode with Neural Processing SDK](https://docs.qualcomm.com/doc/80-70022-50/topic/single-camera-stream-with-image-segmentation-and-encode-with-deeplabv3-quantized.html)

**Parent Topic:** [Run AI/ML sample applications](https://docs.qualcomm.com/doc/80-70022-50/topic/ai-ml-sample-applications.html)

Last Published: Feb 20, 2026

[Previous Topic
Pose detection](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/gst-ai-pose-detection.md) [Next Topic
Image segmentation using Python with container](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/image-segmentation-using-python.md)