# 在应用程序中集成自定义模型

本节介绍了可用于使用 Qualcomm SDK 部署自定义模型的路径。

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by Microsoft Visio, SVG Export integrate-custom-model-in-app.svg develop-own-app -->
<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="12.1354in" height="6.14809in" viewbox="0 0 873.749 442.662" xml:space="preserve" color-interpolation-filters="sRGB" class="st21 svg-1" aria-label="../_images/integrate-custom-model-in-app.svg" svgdefaultwidth="873"><v:documentproperties v:langid="1033">	<v:userdefs>		<v:ud v:nameu="msvNoAutoConnect" v:val="VT0(1):26"></v:ud>	</v:userdefs></v:documentproperties>
<style>.svg-1 .st1 { fill: #f8f8f8; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st2 { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st3 { fill: #d2d7e1; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st4 { fill: #000000; font-family: Microsoft YaHei; font-size: 1.16666em }
.svg-1 .st5 { fill: #2a2aea; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st6 { fill: #ffffff; font-family: Roboto; font-size: 1.16666em }
.svg-1 .st7 { fill: #020b3f; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st8 { font-family: Microsoft YaHei; font-size: 1em }
.svg-1 .st9 { font-size: 1em }
.svg-1 .st10 { font-family: Roboto; font-size: 1em }
.svg-1 .st11 { font-size: 1em; font-weight: bold }
.svg-1 .st12 { font-family: Roboto; font-size: 1em; font-style: italic }
.svg-1 .st13 { fill: none }
.svg-1 .st14 { stroke: #843aff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st15 { marker-end: url("#1-mrkr4-71"); stroke: #843aff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st16 { fill: #843aff; fill-opacity: 1; stroke: #843aff; stroke-opacity: 1; stroke-width: 0.29411736192572 }
.svg-1 .st17 { fill: #000000; font-family: Roboto; font-size: 1.08334em }
.svg-1 .st18 { fill: #000000; font-family: Symbol; font-size: 1.00001em }
.svg-1 .st19 { font-family: Microsoft YaHei; font-size: 1em; font-weight: bold; text-decoration: underline }
.svg-1 .st20 { fill: #000000; font-family: Roboto; font-size: 1.5em; font-style: italic }
.svg-1 .st21 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }</style>
<defs id="Markers">	<g id="lend4">		<path d="M 2 1 L 0 0 L 2 -1 L 2 1 " style="stroke:none"></path>	</g>	<marker id="1-mrkr4-71" class="st16" v:arrowtype="4" v:arrowsize="1" v:setback="0" refx="-0" orient="auto" markerunits="strokeWidth" overflow="visible">		<use xlink:href="#lend4" transform="scale(-3.4000032961419,-3.4000032961419) "></use>	</marker></defs><g v:mid="0" v:index="1" v:groupcontext="foregroundPage">	<title>develop-own-app</title>	<v:pageproperties v:drawingscale="1" v:pagescale="1" v:drawingunits="19" v:shadowoffsetx="8.99999" v:shadowoffsety="-8.99999"></v:pageproperties>	<v:layer v:name="Connector" v:index="0"></v:layer>	<g id="shape1-1" v:mid="1" v:groupcontext="shape" transform="translate(8.99999,-27.0004)">		<title>Sheet.1</title>		<rect x="0" y="37.663" width="854.999" height="404.999" class="st1"></rect>	</g>	<g id="shape2-3" v:mid="2" v:groupcontext="shape" transform="translate(37.1249,-58.5001)">		<title>Sheet.2</title>		<rect x="0" y="98.068" width="791.624" height="344.595" class="st2"></rect>	</g>	<g id="shape3-5" v:mid="3" v:groupcontext="shape" transform="translate(352.169,-385.769)">		<title>Sheet.3</title>		<desc>Developer’s model</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="423.216" width="168.67" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="168.663" height="38.8937" class="st3"></rect>		<text x="42.33" y="427.47" class="st4" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>开发者的模型</text>		</g>	<g id="shape4-8" v:mid="4" v:groupcontext="shape" transform="translate(19.9621,-316.231)">		<title>Sheet.4</title>		<desc>IMSDK</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="75.5189" cy="423.216" width="151.04" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="151.038" height="38.8937" class="st5"></rect>		<text x="54.37" y="427.42" class="st6" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape5-11" v:mid="5" v:groupcontext="shape" transform="translate(249.462,-316.231)">		<title>Sheet.5</title>		<desc>IMSDK</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="75.5189" cy="423.216" width="151.04" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="151.038" height="38.8937" class="st5"></rect>		<text x="54.37" y="427.42" class="st6" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape6-14" v:mid="6" v:groupcontext="shape" transform="translate(478.961,-316.231)">		<title>Sheet.6</title>		<desc>IMSDK</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="423.216" width="168.67" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="168.663" height="38.8937" class="st5"></rect>		<text x="63.18" y="427.42" class="st6" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape7-17" v:mid="7" v:groupcontext="shape" transform="translate(709.174,-316.231)">		<title>Sheet.7</title>		<desc>SNPE/QNN Native C/C++ application</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="72.1188" cy="423.216" width="144.24" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="144.238" height="38.8937" class="st7"></rect>		<text x="21.17" y="418.96" class="st6" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>SNPE/QNN <tspan class="st8">原生</tspan> <tspan x="22.45" dy="1.215em" class="st9">C/C++ </tspan><tspan class="st8">应用程序</tspan></text>		</g>	<g id="shape8-23" v:mid="8" v:groupcontext="shape" transform="translate(19.9621,-207.001)">		<title>Sheet.8</title>		<desc>Beginner: Use case supported Model supported ~15 minutes</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="75.5189" cy="387.646" width="151.04" height="110.034"></v:textrect>		<rect x="0" y="332.629" width="151.038" height="110.034" class="st2"></rect>		<text x="4" y="349.59" class="st4" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>初级：<v:newlinechar></v:newlinechar><v:lf></v:lf><tspan x="4" dy="2.415em" class="st9">支持的用例<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.215em" class="st9">支持的模型<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="2.415em" class="st10"> </tspan>约<tspan class="st10"> </tspan><tspan class="st10">15 </tspan>分钟</text>		</g>	<g id="shape9-31" v:mid="9" v:groupcontext="shape" transform="translate(249.462,-206.198)">		<title>Sheet.9</title>		<desc>Moderate: Use case supported Model NOT supported ~ 2 days*</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="75.5189" cy="387.646" width="151.04" height="110.034"></v:textrect>		<rect x="0" y="332.629" width="151.038" height="110.034" class="st2"></rect>		<text x="4" y="349.59" class="st4" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>中级：<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><tspan x="4" dy="2.415em" class="st9">支持的用例<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.215em" class="st11">不</tspan>支持的模型<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><tspan x="4" dy="2.415em" class="st9">约</tspan><tspan class="st10"> </tspan><tspan class="st10">2 </tspan>天<tspan class="st12">*</tspan></text>		</g>	<g id="shape10-40" v:mid="10" v:groupcontext="shape" transform="translate(479.336,-206.198)">		<title>Sheet.10</title>		<desc>Advanced: Use case NOT supported Model NOT supported ~ 2 weeks*</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="387.646" width="168.67" height="110.034"></v:textrect>		<rect x="0" y="332.629" width="168.663" height="110.034" class="st2"></rect>		<text x="4" y="349.59" class="st4" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>高级：<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><tspan x="4" dy="2.415em" class="st11">不</tspan>支持的用例<v:newlinechar></v:newlinechar><tspan x="4" dy="1.215em" class="st11">不</tspan>支持的模型<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><tspan x="4" dy="2.415em" class="st9">约</tspan><tspan class="st10"> </tspan><tspan class="st10">2 </tspan>周<tspan class="st12">*</tspan></text>		</g>	<g id="shape11-49" v:mid="11" v:groupcontext="shape" transform="translate(709.174,-206.198)">		<title>Sheet.11</title>		<desc>Advanced: No constraints ~ 1 week*</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="72.1188" cy="387.646" width="144.24" height="110.034"></v:textrect>		<rect x="0" y="332.629" width="144.238" height="110.034" class="st2"></rect>		<text x="4" y="349.69" class="st4" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>高级：<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><tspan x="4" dy="2.415em" class="st9">无限制<v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar><v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="3.615em" class="st9">约</tspan><tspan class="st10"> </tspan><tspan class="st10">1 </tspan>周<tspan class="st12">*</tspan></text>		</g>	<g id="shape12-57" v:mid="12" v:groupcontext="shape" transform="translate(879.165,56.6814) rotate(90)">		<title>Sheet.12</title>		<path d="M0 442.66 L17.36 442.66 L0 442.66 Z" class="st13"></path>		<path d="M0 442.66 L17.36 442.66" class="st14"></path>	</g>	<g id="shape13-60" v:mid="13" v:groupcontext="shape" transform="translate(436.499,516.702) rotate(180)">		<title>Sheet.13</title>		<path d="M0 442.66 L342 442.66 L0 442.66 Z" class="st13"></path>		<path d="M0 442.66 L342 442.66" class="st14"></path>	</g>	<g id="shape14-63" v:mid="14" v:groupcontext="shape" transform="translate(436.499,-368.628)">		<title>Sheet.14</title>		<path d="M0 442.66 L351 442.66 L0 442.66 Z" class="st13"></path>		<path d="M0 442.66 L351 442.66" class="st14"></path>	</g>	<g id="shape15-66" v:mid="15" v:groupcontext="shape" transform="translate(537.165,74.0375) rotate(90)">		<title>Sheet.15</title>		<path d="M0 442.66 L8.4 442.66 L13.5 442.66" class="st15"></path>	</g>	<g id="shape16-72" v:mid="16" v:groupcontext="shape" transform="translate(766.665,74.0375) rotate(90)">		<title>Sheet.16</title>		<path d="M0 442.66 L8.4 442.66 L13.5 442.66" class="st15"></path>	</g>	<g id="shape17-77" v:mid="17" v:groupcontext="shape" transform="translate(1000.66,74.0375) rotate(90)">		<title>Sheet.17</title>		<path d="M0 442.66 L8.4 442.66 L13.5 442.66" class="st15"></path>	</g>	<g id="shape18-82" v:mid="18" v:groupcontext="shape" transform="translate(1230.16,74.0375) rotate(90)">		<title>Sheet.18</title>		<path d="M0 442.66 L8.4 442.66 L13.5 442.66" class="st15"></path>	</g>	<g id="shape19-87" v:mid="19" v:groupcontext="shape" transform="translate(18,-168.106)">		<title>Sheet.19</title>		<desc>Compile application, IMSDK with eSDK</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="315" cy="423.216" width="630" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="629.999" height="38.8937" class="st3"></rect>		<text x="207.08" y="427.47" class="st4" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>使用<tspan class="st10"> </tspan><tspan class="st10">IMSDK </tspan>及<tspan class="st10"> </tspan><tspan class="st10">eSDK </tspan>编译应用程序</text>		</g>	<g id="shape20-94" v:mid="20" v:groupcontext="shape" transform="translate(18,-128.894)">		<title>Sheet.20</title>		<desc>16 – AI Hub models</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="423.216" width="168.67" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="168.663" height="38.8937" class="st2"></rect>		<text x="4" y="427.16" class="st17" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>16 – AI Hub <tspan class="st8">模型</tspan></text>		</g>	<g id="shape21-98" v:mid="21" v:groupcontext="shape" transform="translate(245.337,-128.894)">		<title>Sheet.21</title>		<desc>03 – AI Hub models</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="423.216" width="168.67" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="168.663" height="38.8937" class="st2"></rect>		<text x="4" y="427.16" class="st17" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>03 – AI Hub <tspan class="st8">模型</tspan></text>		</g>	<g id="shape22-102" v:mid="22" v:groupcontext="shape" transform="translate(481.499,-128.25)">		<title>Sheet.22</title>		<desc>05 – AI Hub models</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="84.3314" cy="423.216" width="168.67" height="38.8937"></v:textrect>		<rect x="0" y="403.769" width="168.663" height="38.8937" class="st2"></rect>		<text x="4" y="427.16" class="st17" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>05 – AI Hub <tspan class="st8">模型</tspan></text>		</g>	<g id="shape23-106" v:mid="23" v:groupcontext="shape" transform="translate(31.5,-38.25)">		<title>Sheet.23</title>		<desc>Developers should be able to replicate our deliverables in ~ ...</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="315" cy="411.162" width="630" height="62.9999"></v:textrect>		<rect x="0" y="379.663" width="629.999" height="62.9999" class="st2"></rect>		<text x="4" y="407.43" class="st18" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist><v:newlinechar></v:newlinechar><v:paragraph v:indentfirst="-18" v:indentleft="18" v:bullet="1"></v:paragraph><tspan class="st9" v:isbullet="true">·</tspan> <tspan class="st8">开发者应该能够在大约</tspan><tspan class="st10"> </tspan><tspan class="st10">2 </tspan><tspan class="st8">小时内复制我们的交付内容</tspan><tspan class="st8">。<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.215em" class="st9" v:isbullet="true">·</tspan> <tspan class="st8">以上时间是编写</tspan><tspan class="st19">您自己的新应用程序</tspan><tspan class="st8">的时间<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.215em" class="st9" v:isbullet="true">·</tspan> <tspan class="st8">请参阅</tspan><tspan class="st10"> </tspan><tspan class="st10">Qualcomm AI Hub</tspan><tspan class="st8">，</tspan><tspan class="st8">了解最新的可用型号</tspan></text>		</g>	<g id="shape24-125" v:mid="24" v:groupcontext="shape" transform="translate(18,-42.7499)">		<title>Sheet.24</title>		<desc>*</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(3.99999,3.99999,3.99999,3.99999)"></v:textblock>		<v:textrect cx="315" cy="411.162" width="630" height="62.9999"></v:textrect>		<rect x="0" y="379.663" width="629.999" height="62.9999" class="st2"></rect>		<text x="4" y="416.56" class="st20" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>*  </text>		</g></g>
</svg>

**引入自己的模型：部署模型所需的时间**

Note

对于中级和高级开发路径，默认用户已了解 [GStreamer基础知识](https://gstreamer.freedesktop.org/documentation/tutorials/index.html)、具备 [GStreamerpipeline](https://gstreamer.freedesktop.org/documentation/gstreamer/gstpipeline.html?gi-language=c)、C/C++专业知识以及 [Yocto 编译环境](https://docs.yoctoproject.org/2.1/yocto-project-qs/yocto-project-qs.html)。

Last Published: Jan 25, 2026

[Previous Topic
下载源代码以进行开发](https://docs.qualcomm.com/bundle/publicresource/80-70017-15BY/topics/develop-your-own-application.md) [Next Topic
在应用程序中集成 AI Hub 模型](https://docs.qualcomm.com/bundle/publicresource/80-70017-15BY/topics/integrate-ai-hub-models.md)