{"id":117276,"date":"2026-10-24T15:29:48","date_gmt":"2026-10-24T07:29:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117276.html"},"modified":"2026-10-24T15:29:48","modified_gmt":"2026-10-24T07:29:48","slug":"%e7%ab%af%e4%be%a7%e5%9b%be%e5%83%8f%e8%b6%85%e5%88%86%e6%8e%a5%e5%85%a5%e6%8c%87%e5%8d%97%ef%bc%9aharmonyos-7-%e5%9b%9b%e5%80%8d%e9%ab%98%e6%b8%85%e6%94%be%e5%a4%a7%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117276.html","title":{"rendered":"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218"},"content":{"rendered":"<h2 id=\"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aharmonyos-7-\u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218\">\u65b9\u5411&#xff1a;\u56fe\u50cf\u8d85\u5206 \u00b7 Core Vision Kit<\/h2>\n<h3 id=\"\u4e00\u3001\u5148\u533a\u5206\u4e24\u4e2a\u6982\u5ff5\uff1a\u653e\u5927-vs-\u8d85\u5206\">\u4e00\u3001\u5148\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;\u653e\u5927 vs \u8d85\u5206<\/h3>\n<p>\u5f88\u591a\u4eba\u628a&#034;\u56fe\u50cf\u653e\u5927&#034;\u548c&#034;\u56fe\u50cf\u8d85\u5206&#034;\u5f53\u6210\u4e00\u56de\u4e8b\u3002\u8fd9\u662f\u4e24\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u6280\u672f\u8def\u7ebf\u3002<\/p>\n<p>\u4f20\u7edf\u653e\u5927&#xff08;\u63d2\u503c&#xff09;&#xff1a;\u628a\u4e00\u5f20\u4f4e\u5206\u8fa8\u7387\u56fe\u7247\u7684\u50cf\u7d20&#xff0c;\u7528\u7b97\u6cd5\u5e73\u6ed1\u5730\u94fa\u5f00\u3002\u56fe\u53d8\u5927\u4e86&#xff0c;\u4f46\u4fe1\u606f\u6ca1\u6709\u589e\u52a0\u2014\u2014\u539f\u6765\u7cca\u7684\u5730\u65b9\u8fd8\u662f\u7cca&#xff0c;\u53ea\u662f\u7cca\u5f97\u66f4\u5927\u4e86\u3002\u4f60\u7528 PS \u628a\u4e00\u5f20 500\u00d7500 \u7684\u56fe\u62c9\u5230 2000\u00d72000&#xff0c;\u672c\u8d28\u4e0a\u5c31\u662f\u63d2\u503c\u653e\u5927\u3002<\/p>\n<p>\u56fe\u50cf\u8d85\u5206&#xff08;Super Resolution&#xff09;&#xff1a;\u7528 AI \u6a21\u578b&#xff0c;\u6839\u636e\u5df2\u6709\u50cf\u7d20&#034;\u9884\u6d4b&#034;\u51fa\u4e22\u5931\u7684\u9ad8\u9891\u7ec6\u8282\u3002\u8fb9\u7f18\u3001\u7eb9\u7406\u3001\u566a\u70b9\u8fd9\u4e9b\u4fe1\u606f&#xff0c;\u662f\u6a21\u578b\u6839\u636e\u8bad\u7ec3\u7ecf\u9a8c\u8865\u56de\u6765\u7684\u3002\u56fe\u53d8\u5927\u4e86&#xff0c;\u7ec6\u8282\u4e5f\u53d8\u591a\u4e86\u3002<\/p>\n<p>\u8fd9\u4e24\u4e2a\u7684\u533a\u522b&#xff0c;\u4f60\u62ff\u4e00\u5f20\u8001\u7167\u7247\u5bf9\u6bd4\u4e00\u4e0b\u5c31\u77e5\u9053&#xff1a;\u63d2\u503c\u653e\u5927\u540e\u4eba\u8138\u8fd8\u662f\u7cca\u7684&#xff0c;\u8d85\u5206\u540e\u4eba\u8138\u4e0a\u7684\u76b1\u7eb9\u3001\u5934\u53d1\u4e1d\u90fd\u80fd\u770b\u6e05\u695a\u3002<\/p>\n<p>HarmonyOS 7 \u7684 Core Vision Kit \u63d0\u4f9b\u4e86\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u80fd\u529b\u3002\u5b83\u7684\u5b9a\u4f4d\u662f&#xff1a;\u5728\u624b\u673a\u672c\u5730&#xff0c;\u628a\u4e00\u5f20\u4f4e\u6e05\u56fe\u7247\u667a\u80fd\u653e\u5927\u56db\u500d&#xff0c;\u540c\u65f6\u8865\u5168\u7ec6\u8282\u3001\u964d\u4f4e\u566a\u70b9\u3002\u56fe\u7247\u5168\u7a0b\u4e0d\u51fa\u8bbe\u5907\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u8bb2\u6e05\u695a\u4e09\u4ef6\u4e8b&#xff1a;\u8d85\u5206\u8ddf\u63d2\u503c\u5230\u5e95\u5dee\u5728\u54ea\u3001\u7aef\u4fa7\u8d85\u5206\u4e3a\u4ec0\u4e48\u662f\u5408\u89c4\u4f18\u52bf\u3001\u4ee5\u53ca\u600e\u4e48\u7528 ImageSRAnalyzer \u4e09\u6bb5\u5f0f\u628a\u80fd\u529b\u63a5\u8fdb\u4f60\u7684 App\u3002<\/p>\n<hr \/>\n<h3 id=\"\u4e8c\u3001\u7aef\u4fa7\u8d85\u5206\u7684\u771f\u6b63\u4ef7\u503c\uff1a\u4e0d\u662f\u753b\u8d28\uff0c\u662f\u5408\u89c4\">\u4e8c\u3001\u7aef\u4fa7\u8d85\u5206\u7684\u771f\u6b63\u4ef7\u503c&#xff1a;\u4e0d\u662f\u753b\u8d28&#xff0c;\u662f\u5408\u89c4<\/h3>\n<p>\u5148\u7ea0\u6b63\u4e00\u4e2a\u5e38\u89c1\u8bef\u89e3\u3002<\/p>\n<p>\u5f88\u591a\u56e2\u961f\u8bc4\u4f30\u8d85\u5206\u65f6&#xff0c;\u7b2c\u4e00\u53cd\u5e94\u662f&#034;\u6548\u679c\u597d\u4e0d\u597d&#034;\u3002\u4f46\u5728\u5b9e\u9645\u9879\u76ee\u91cc&#xff0c;\u8d85\u5206\u7684\u6838\u5fc3\u4ef7\u503c\u5f80\u5f80\u4e0d\u662f\u753b\u8d28\u672c\u8eab&#xff0c;\u800c\u662f\u6570\u636e\u4e0d\u51fa\u8bbe\u5907\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bf4&#xff1f;<\/p>\n<p>\u8d85\u5206\u5982\u679c\u653e\u5728\u4e91\u7aef\u505a&#xff0c;\u6280\u672f\u4e0a\u4e5f\u6210\u7acb&#xff1a;\u7528\u6237\u4e0a\u4f20\u4f4e\u6e05\u56fe \u2192 \u4e91\u7aef GPU\/NPU \u63a8\u7406 \u2192 \u8fd4\u56de\u9ad8\u6e05\u56fe\u3002\u4f46\u95ee\u9898\u6765\u4e86\u2014\u2014\u4f60\u7684 App \u91cc\u8d85\u5206\u7684\u56fe\u7247\u662f\u4ec0\u4e48&#xff1f;<\/p>\n<ul>\n<li>\u8001\u7167\u7247\u4fee\u590d&#xff1a;\u7528\u6237\u7684\u79c1\u4eba\u5f71\u50cf<\/li>\n<li>\u8bc1\u4ef6\u622a\u56fe\u589e\u5f3a&#xff1a;\u8eab\u4efd\u8bc1\u3001\u94f6\u884c\u5361<\/li>\n<li>\u7535\u5546\u5546\u54c1\u56fe&#xff1a;\u5546\u54c1\u7d20\u6750<\/li>\n<li>\u793e\u4ea4 App \u5934\u50cf&#xff1a;\u7528\u6237\u4e0a\u4f20\u7684\u7167\u7247<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u56fe\u7247\u90fd\u5e26\u654f\u611f\u5c5e\u6027\u3002\u4e00\u65e6\u79bb\u5f00\u8bbe\u5907\u8fdb\u4e91\u7aef&#xff0c;\u5c31\u8981\u9762\u5bf9\u4f20\u8f93\u52a0\u5bc6\u3001\u5b58\u50a8\u5408\u89c4\u3001\u8d8a\u6743\u8bbf\u95ee\u3001\u6570\u636e\u7559\u5b58\u5468\u671f\u4e00\u6574\u6761\u95ee\u9898\u3002\u5f88\u591a\u56e2\u961f\u4e0d\u662f\u505a\u4e0d\u51fa\u4e91\u7aef\u8d85\u5206&#xff0c;\u662f\u8fc7\u4e0d\u4e86\u81ea\u5df1\u7684\u5408\u89c4\u8bc4\u5ba1\u3002<\/p>\n<p>HarmonyOS 7 \u7684\u7aef\u4fa7\u8d85\u5206\u628a\u8fd9\u4e2a\u95ee\u9898\u7ffb\u4e86\u8fc7\u6765&#xff1a;\u63a8\u7406\u53d1\u751f\u5728\u8bbe\u5907\u7684 NPU \u7b49\u786c\u4ef6\u4e0a&#xff0c;\u56fe\u7247\u5168\u7a0b\u4e0d\u4f20\u4e91\u7aef\u3002\u7cfb\u7edf\u7ea7\u4fdd\u8bc1\u6570\u636e\u4e0d\u51fa\u8bbe\u5907\u3002<\/p>\n<p>\u6240\u4ee5\u7aef\u4fa7\u8d85\u5206\u7684\u771f\u6b63\u4ef7\u503c\u662f&#xff1a;\u5b83\u628a&#034;\u6570\u636e\u9690\u79c1&#034;\u4ece\u4e00\u4e2a\u9700\u8981\u4f60\u989d\u5916\u5efa\u8bbe\u7684\u5408\u89c4\u9879&#xff0c;\u53d8\u6210\u4e86\u7cfb\u7edf\u9012\u5230\u4f60\u624b\u91cc\u7684\u9ed8\u8ba4\u503c\u3002<\/p>\n<p>\u753b\u8d28\u662f\u526f\u4ea7\u54c1&#xff0c;\u5408\u89c4\u662f\u524d\u63d0\u3002<\/p>\n<hr \/>\n<h3 id=\"\u4e09\u3001\u6280\u672f\u89c4\u683c\uff1a\u4f60\u80fd\u671f\u5f85\u4ec0\u4e48\">\u4e09\u3001\u6280\u672f\u89c4\u683c&#xff1a;\u4f60\u80fd\u671f\u5f85\u4ec0\u4e48<\/h3>\n<p>\u5728\u5199\u4ee3\u7801\u4e4b\u524d&#xff0c;\u5148\u628a\u5b98\u65b9\u89c4\u683c\u8bb2\u6e05\u695a&#xff0c;\u907f\u514d\u9884\u671f\u9519\u4f4d\u3002<\/p>\n<p>\u6839\u636e Core Vision Kit \u7684 API \u6587\u6863&#xff1a;<\/p>\n<table>\n<tr>\u9879\u76ee\u89c4\u683c<\/tr>\n<tbody>\n<tr>\n<td>\u8f93\u5165\u6700\u5927\u5c3a\u5bf8<\/td>\n<td>2048\u00d72048 \u50cf\u7d20<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u500d\u7387<\/td>\n<td>4 \u500d\u9ad8\u6e05\u653e\u5927<\/td>\n<\/tr>\n<tr>\n<td>\u652f\u6301\u7684\u56fe\u7247\u683c\u5f0f<\/td>\n<td>PixelMap&#xff08;ArkUI \u901a\u7528\u50cf\u7d20\u56fe&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u884c\u4f4d\u7f6e<\/td>\n<td>\u7aef\u4fa7 NPU\/GPU&#xff0c;\u4e0d\u4f9d\u8d56\u4e91\u7aef<\/td>\n<\/tr>\n<tr>\n<td>\u652f\u6301\u8bbe\u5907<\/td>\n<td>Phone \/ 2in1 \/ Tablet<\/td>\n<\/tr>\n<tr>\n<td>\u8d77\u59cb\u7248\u672c<\/td>\n<td>HarmonyOS 7&#xff08;API 26&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u51e0\u4e2a\u5173\u952e\u8fb9\u754c\u8981\u8bb0\u4f4f&#xff1a;<\/p>\n<li>\u8f93\u5165\u56fe\u4e0d\u80fd\u8d85\u8fc7 2048\u00d72048\u3002\u8d85\u8fc7\u4e86\u8981\u5148\u538b\u7f29\u518d\u9001\u5165\u3002<\/li>\n<li>\u8f93\u51fa\u662f\u56fa\u5b9a 4 \u500d\u653e\u5927\u3002\u4e0d\u662f 2 \u500d\u30013 \u500d\u53ef\u9009&#xff0c;\u5c31\u662f 4 \u500d\u3002<\/li>\n<li>\u53ea\u652f\u6301\u5355\u5f20\u56fe\u5904\u7406\u3002\u4e0d\u652f\u6301\u6279\u91cf&#xff0c;\u4e00\u6b21 process \u4e00\u5f20\u3002<\/li>\n<li>\u8d85\u5206\u8865\u7684\u662f\u9ad8\u9891\u7ec6\u8282&#xff0c;\u4e0d\u662f\u51ed\u7a7a\u9020\u56fe\u3002\u539f\u6765\u5c31\u6ca1\u6709\u7684\u4fe1\u606f&#xff08;\u6bd4\u5982\u88ab\u88c1\u526a\u6389\u7684\u90e8\u5206&#xff09;&#xff0c;\u8d85\u5206\u8865\u4e0d\u56de\u6765\u3002<\/li>\n<p>\u7b2c\u56db\u70b9\u7279\u522b\u91cd\u8981\u3002\u5f88\u591a\u4eba\u671f\u5f85\u8d85\u5206\u662f&#034;\u6a21\u7cca\u7167\u7247\u53d8\u9ad8\u6e05\u9b54\u6cd5&#034;&#xff0c;\u5b9e\u9645\u4e0a\u5b83\u662f&#034;\u538b\u7f29\u635f\u5931\u7684\u7ec6\u8282\u6062\u590d&#034;\u3002\u5982\u679c\u4e00\u5f20\u56fe\u672c\u6765\u5c31\u62cd\u7cca\u4e86\u3001\u5931\u7126\u4e86&#xff0c;\u8d85\u5206\u80fd\u6539\u5584\u6709\u9650\u3002\u5b83\u6700\u64c5\u957f\u7684\u662f&#xff1a;JPEG \u538b\u7f29 artifacts \u6062\u590d\u3001\u4f4e\u5206\u8fa8\u7387\u4f46\u5bf9\u7126\u51c6\u786e\u7684\u56fe\u653e\u5927\u3001\u7ec6\u8282\u8865\u5168\u3002<\/p>\n<hr \/>\n<h3 id=\"\u56db\u3001\u63a5\u5165\uff1a\u4e09\u6bb5\u5f0f\uff0c\u5341\u884c\u6838\u5fc3\u4ee3\u7801\">\u56db\u3001\u63a5\u5165&#xff1a;\u4e09\u6bb5\u5f0f&#xff0c;\u5341\u884c\u6838\u5fc3\u4ee3\u7801<\/h3>\n<p>Core Vision Kit \u7684\u8d85\u5206 API \u662f\u6807\u51c6\u7684&#034;\u5206\u6790\u5668&#034;\u6a21\u5f0f&#xff1a;\u521b\u5efa\u5b9e\u4f8b \u2192 \u5904\u7406 \u2192 \u9500\u6bc1\u3002<\/p>\n<h4 id=\"41-\u5b8c\u6574\u6700\u5c0f\u793a\u4f8b\">4.1 \u5b8c\u6574\u6700\u5c0f\u793a\u4f8b<\/h4>\n<p>import { imageSuperResolution, visionBase } from &#039;&#064;kit.CoreVisionKit&#039;;<br \/>\nimport { image } from &#039;&#064;kit.ImageKit&#039;;<br \/>\nimport { BusinessError } from &#039;&#064;kit.BasicServicesKit&#039;;<br \/>\nimport { hilog } from &#039;&#064;kit.PerformanceAnalysisKit&#039;;<\/p>\n<p>&#064;Component<br \/>\nstruct ImageEnhancePage {<br \/>\n  \/\/ \u5206\u6790\u5668\u5b9e\u4f8b&#xff0c;\u968f\u9875\u9762\u751f\u547d\u5468\u671f\u521b\u5efa\u548c\u9500\u6bc1<br \/>\n  private analyzer: imageSuperResolution.ImageSRAnalyzer | null &#061; null;<\/p>\n<p>  &#064;State inputImage: image.PixelMap | undefined &#061; undefined;<br \/>\n  &#064;State outputImage: image.PixelMap | undefined &#061; undefined;<br \/>\n  &#064;State statusText: string &#061; &#039;\u7b49\u5f85\u5904\u7406&#039;;<\/p>\n<p>  async aboutToAppear(): Promise&lt;void&gt; {<br \/>\n    \/\/ \u7b2c\u4e00\u6b65&#xff1a;\u521b\u5efa\u5206\u6790\u5668\u5b9e\u4f8b<br \/>\n    this.analyzer &#061; await imageSuperResolution.ImageSRAnalyzer.create();<br \/>\n    hilog.info(0x0000, &#039;ImageSR&#039;, &#039;\u5206\u6790\u5668\u521b\u5efa\u6210\u529f&#039;);<br \/>\n  }<\/p>\n<p>  async aboutToDisappear(): Promise&lt;void&gt; {<br \/>\n    \/\/ \u7b2c\u4e09\u6b65&#xff1a;\u9500\u6bc1\u5206\u6790\u5668&#xff0c;\u91ca\u653e NPU \u8d44\u6e90<br \/>\n    if (this.analyzer) {<br \/>\n      await this.analyzer.destroy();<br \/>\n      this.analyzer &#061; null;<br \/>\n    }<br \/>\n  }<\/p>\n<p>  \/\/ \u6838\u5fc3\u65b9\u6cd5&#xff1a;\u4f4e\u6e05\u56fe\u8fdb&#xff0c;\u9ad8\u6e05\u56fe\u51fa<br \/>\n  private async upscale(src: image.PixelMap): Promise&lt;image.PixelMap | null&gt; {<br \/>\n    if (!this.analyzer) {<br \/>\n      return null;<br \/>\n    }<\/p>\n<p>    \/\/ \u6784\u9020\u8bf7\u6c42&#xff1a;\u628a PixelMap \u5305\u6210 ImageData<br \/>\n    const imageData: visionBase.ImageData &#061; { pixelMap: src };<br \/>\n    const request: visionBase.Request &#061; { inputData: imageData };<\/p>\n<p>    try {<br \/>\n      \/\/ \u7b2c\u4e8c\u6b65&#xff1a;\u6267\u884c\u8d85\u5206\u63a8\u7406<br \/>\n      const response: imageSuperResolution.ISPResponse &#061;<br \/>\n        await this.analyzer.process(request);<\/p>\n<p>      \/\/ \u8fd4\u56de\u653e\u5927\u56db\u500d\u540e\u7684 PixelMap<br \/>\n      return response.pixelMap;<br \/>\n    } catch (e) {<br \/>\n      const err &#061; e as BusinessError;<br \/>\n      hilog.error(0x0000, &#039;ImageSR&#039;,<br \/>\n        &#096;\u8d85\u5206\u5931\u8d25 code&#061;${err.code}, msg&#061;${err.message}&#096;);<br \/>\n      return null;<br \/>\n    }<br \/>\n  }<\/p>\n<p>  build() {<br \/>\n    Column() {<br \/>\n      \/\/ \u8f93\u5165\u56fe<br \/>\n      if (this.inputImage) {<br \/>\n        Image(this.inputImage)<br \/>\n          .width(300)<br \/>\n          .height(300)<br \/>\n          .objectFit(ImageFit.Contain)<br \/>\n      }<\/p>\n<p>      Text(this.statusText)<br \/>\n        .margin({ top: 10, bottom: 10 })<\/p>\n<p>      \/\/ \u8f93\u51fa\u56fe&#xff08;\u8d85\u5206\u540e&#xff09;<br \/>\n      if (this.outputImage) {<br \/>\n        Image(this.outputImage)<br \/>\n          .width(300)<br \/>\n          .height(300)<br \/>\n          .objectFit(ImageFit.Contain)<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h4 id=\"42-\u9010\u6bb5\u89e3\u91ca\">4.2 \u9010\u6bb5\u89e3\u91ca<\/h4>\n<p>\u521b\u5efa\u5b9e\u4f8b&#xff1a;ImageSRAnalyzer.create()<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5f02\u6b65\u65b9\u6cd5\u3002\u521b\u5efa\u7684\u65f6\u5019\u7cfb\u7edf\u4f1a\u521d\u59cb\u5316 NPU \u63a8\u7406\u73af\u5883\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6709\u4e00\u5b9a\u5f00\u9500&#xff0c;\u6240\u4ee5\u4e0d\u8981\u5728 build() \u91cc\u53cd\u590d\u521b\u5efa\u2014\u2014\u5728 aboutToAppear \u521b\u5efa\u4e00\u6b21&#xff0c;\u6301\u6709\u5230\u9875\u9762\u9500\u6bc1\u3002<\/p>\n<p>\u5904\u7406&#xff1a;analyzer.process(request)<\/p>\n<p>process \u4e5f\u662f\u5f02\u6b65\u7684\u3002\u5b83\u628a\u4f60\u7684 PixelMap \u9001\u8fdb NPU \u63a8\u7406&#xff0c;\u8fd4\u56de\u4e00\u4e2a ISPResponse&#xff0c;\u91cc\u9762\u7684 pixelMap \u5c31\u662f\u653e\u5927\u56db\u500d\u540e\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u5904\u7406\u65f6\u95f4\u53d6\u51b3\u4e8e\u56fe\u7247\u5927\u5c0f\u30022048\u00d72048 \u7684\u56fe\u5728\u65d7\u8230\u673a\u578b\u4e0a\u5927\u6982\u51e0\u767e\u6beb\u79d2\u5230\u4e00\u79d2\u591a\u3002\u4f4e\u7aef\u673a\u578b\u4f1a\u6162\u4e00\u4e9b\u3002\u5982\u679c\u662f\u5728\u4e3b\u7ebf\u7a0b\u5904\u7406&#xff0c;\u5efa\u8bae\u52a0 loading \u63d0\u793a\u3002<\/p>\n<p>\u9500\u6bc1&#xff1a;analyzer.destroy()<\/p>\n<p>\u8fd9\u4e2a\u7279\u522b\u91cd\u8981\u3002\u8d85\u5206\u5206\u6790\u5668\u6301\u6709 NPU \u8d44\u6e90&#xff0c;\u4e0d\u9500\u6bc1\u4f1a\u4e00\u76f4\u5360\u7740\u3002\u9875\u9762\u9000\u51fa\u65f6\u5fc5\u987b destroy&#xff0c;\u4e0d\u7136\u5185\u5b58\u548c NPU \u5360\u7528\u4f1a\u6cc4\u6f0f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1536\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024072943-6adc5e67b842b.jpg\" width=\"2730\" \/><\/p>\n<h4 id=\"43-\u4ece\u76f8\u518c\u9009\u56fe\uff0c\u8d70\u4e00\u904d\u5b8c\u6574\u6d41\u7a0b\">4.3 \u4ece\u76f8\u518c\u9009\u56fe&#xff0c;\u8d70\u4e00\u904d\u5b8c\u6574\u6d41\u7a0b<\/h4>\n<p>\u4e0a\u9762\u7684\u4f8b\u5b50\u662f\u7eaf API \u8c03\u7528\u3002\u5b9e\u9645\u9879\u76ee\u91cc\u4f60\u9700\u8981\u4ece\u76f8\u518c\u9009\u56fe&#xff0c;\u6216\u8005\u4ece\u7f51\u7edc\u4e0b\u8f7d\u4e00\u5f20\u56fe&#xff0c;\u8f6c\u6210 PixelMap \u518d\u9001\u5165\u8d85\u5206\u3002<\/p>\n<p>\u4ece\u76f8\u518c\u9009\u56fe\u7684\u6d41\u7a0b&#xff1a;<\/p>\n<p>import { photoAccessHelper } from &#039;&#064;kit.MediaLibraryKit&#039;;<br \/>\nimport { image } from &#039;&#064;kit.ImageKit&#039;;<\/p>\n<p>async pickFromGallery(): Promise&lt;image.PixelMap | null&gt; {<br \/>\n  const context &#061; getContext(this);<br \/>\n  const helper &#061; photoAccessHelper.getPhotoAccessHelper(context);<\/p>\n<p>  try {<br \/>\n    \/\/ \u8c03\u8d77\u76f8\u518c\u9009\u62e9\u5668<br \/>\n    const uris &#061; await helper.getAssetsInfo(<br \/>\n      photoAccessHelper.PhotoSelectOptions,<br \/>\n      {<br \/>\n        MIMEType: photoAccessHelper.PhotoViewMIMETypes.IMAGE_TYPE,<br \/>\n        maxSelectNumber: 1<br \/>\n      }<br \/>\n    );<\/p>\n<p>    if (uris.length &#061;&#061;&#061; 0) return null;<\/p>\n<p>    \/\/ \u6253\u5f00\u6587\u4ef6\u6d41<br \/>\n    const file &#061; fs.openSync(uris[0].uri, fs.OpenMode.READ_ONLY);<br \/>\n    const source &#061; image.createImageSource(file.fd);<\/p>\n<p>    \/\/ \u8f6c\u6210 PixelMap<br \/>\n    const pixelMap &#061; await source.createPixelMap();<br \/>\n    fs.closeSync(file.fd);<\/p>\n<p>    return pixelMap;<br \/>\n  } catch (e) {<br \/>\n    console.error(&#039;\u9009\u56fe\u5931\u8d25: &#039; &#043; (e as BusinessError).message);<br \/>\n    return null;<br \/>\n  }<br \/>\n}<\/p>\n<p>\u9009\u5230 PixelMap \u4e4b\u540e&#xff0c;\u4f20\u7ed9\u524d\u9762\u7684 upscale() \u65b9\u6cd5\u5c31\u884c\u3002<\/p>\n<hr \/>\n<h3 id=\"\u4e94\u3001\u4e24\u4e2a\u5173\u952e\u5224\u65ad\uff1a\u8be5\u7528\u5728\u54ea\u3001\u4e0d\u8be5\u7528\u5728\u54ea\">\u4e94\u3001\u4e24\u4e2a\u5173\u952e\u5224\u65ad&#xff1a;\u8be5\u7528\u5728\u54ea\u3001\u4e0d\u8be5\u7528\u5728\u54ea<\/h3>\n<p>\u4ee3\u7801\u8dd1\u901a\u53ea\u662f\u7b2c\u4e00\u6b65\u3002\u771f\u6b63\u7684\u51b3\u7b56\u662f&#xff1a;\u4f60\u7684\u4e1a\u52a1\u91cc&#xff0c;\u8d85\u5206\u8be5\u7528\u5728\u54ea&#xff1f;<\/p>\n<h4 id=\"\u5224\u65ad\u4e00\uff1a\u8d85\u5206\u662f\u4f20\u8f93\u67b6\u6784\u7684\u6760\u6746\">\u5224\u65ad\u4e00&#xff1a;\u8d85\u5206\u662f&#034;\u4f20\u8f93\u67b6\u6784&#034;\u7684\u6760\u6746<\/h4>\n<p>\u8d85\u5206\u6700\u5927\u7684 ROI \u4e0d\u5728&#034;\u56fe\u53d8\u597d\u770b\u4e86&#034;&#xff0c;\u800c\u5728&#034;\u5c0f\u56fe\u4f20\u8f93\u3001\u5927\u56fe\u5448\u73b0&#034;\u3002<\/p>\n<p>\u4ec0\u4e48\u610f\u601d&#xff1f;\u6bd4\u5982\u4e00\u4e2a\u7535\u5546 App&#xff0c;\u5546\u54c1\u8be6\u60c5\u56fe\u5982\u679c\u5168\u5b58\u9ad8\u6e05\u539f\u56fe&#xff0c;\u5b58\u50a8\u6210\u672c\u548c CDN \u5e26\u5bbd\u90fd\u5f88\u9ad8\u3002\u8d85\u5206\u8ba9\u4f60\u53ef\u4ee5\u53ea\u5b58\u4f4e\u6e05\u5c0f\u56fe&#xff0c;\u7528\u6237\u70b9\u5f00\u5546\u54c1\u9875\u65f6\u7aef\u4fa7\u5b9e\u65f6\u8d85\u5206\u6210\u9ad8\u6e05\u56fe\u3002<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u67b6\u6784\u5c42\u9762\u7684\u4f18\u5316&#xff1a;<\/p>\n<table>\n<tr>\u65b9\u6848\u5b58\u50a8\u5e26\u5bbd\u753b\u8d28<\/tr>\n<tbody>\n<tr>\n<td>\u5b58\u9ad8\u6e05\u539f\u56fe<\/td>\n<td>\u9ad8<\/td>\n<td>\u9ad8<\/td>\n<td>\u6700\u597d<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u5c0f\u56fe &#043; \u7aef\u4fa7\u8d85\u5206<\/td>\n<td>\u4f4e<\/td>\n<td>\u4f4e<\/td>\n<td>\u63a5\u8fd1\u9ad8\u6e05<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u65b0\u95fb\u4fe1\u606f\u6d41\u3001\u7535\u5546\u8be6\u60c5\u56fe\u3001\u9a7e\u57f9\u793a\u610f\u56fe\u8fd9\u7c7b&#034;\u6807\u51c6\u7248\u5f0f\u3001\u6279\u91cf\u5206\u53d1&#034;\u7684\u56fe&#xff0c;\u8d85\u5206\u6536\u76ca\u6700\u5927\u3002<\/p>\n<h4 id=\"\u5224\u65ad\u4e8c\uff1a\u8d85\u5206\u6551\u4e0d\u56de\u88ab\u9500\u6bc1\u7684\u4fe1\u606f\">\u5224\u65ad\u4e8c&#xff1a;\u8d85\u5206\u6551\u4e0d\u56de\u88ab\u9500\u6bc1\u7684\u4fe1\u606f<\/h4>\n<p>\u8d85\u5206\u80fd\u8865\u56de JPEG \u538b\u7f29\u635f\u5931\u7684\u9ad8\u9891\u7eb9\u7406&#xff0c;\u4f46\u8865\u4e0d\u56de&#034;\u5f53\u5e74\u6839\u672c\u6ca1\u62cd\u6e05\u695a&#034;\u6216&#034;\u88ab\u88c1\u526a\u6389&#034;\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u5b83\u4e0d\u662f\u65e0\u635f\u8fd8\u539f\u7684\u9b54\u6cd5\u3002\u522b\u62ff\u5b83\u5f53\u539f\u59cb\u9ad8\u6e05\u7d20\u6750\u7684\u66ff\u4ee3\u54c1&#xff0c;\u66f4\u522b\u627f\u8bfa&#034;\u6a21\u7cca\u7167\u7247\u53d8\u9274\u5b9a\u7ea7\u6e05\u6670&#034;\u3002<\/p>\n<p>\u5177\u4f53\u6765\u8bf4&#xff1a;<\/p>\n<ul>\n<li>\u9002\u5408\u8d85\u5206\u7684\u56fe&#xff1a;JPEG \u538b\u7f29\u8fc7\u5ea6\u7684\u56fe\u3001\u4f4e\u5206\u8fa8\u7387\u4f46\u5bf9\u7126\u51c6\u786e\u7684\u56fe\u3001\u9700\u8981\u653e\u5927\u5c55\u793a\u7684\u7f29\u7565\u56fe<\/li>\n<li>\u4e0d\u9002\u5408\u8d85\u5206\u7684\u56fe&#xff1a;\u4e25\u91cd\u5931\u7126\u7684\u56fe\u3001\u8fd0\u52a8\u6a21\u7cca\u7684\u56fe\u3001\u5185\u5bb9\u88ab\u88c1\u526a\u6389\u7684\u56fe\u3001\u9700\u8981 OCR \u8bc6\u522b\u6587\u5b57\u4f46\u539f\u56fe\u6587\u5b57\u5df2\u7ecf\u7cca\u6389\u7684\u56fe<\/li>\n<\/ul>\n<p>\u6700\u540e\u4e00\u7c7b\u7279\u522b\u8981\u6ce8\u610f\u3002\u5982\u679c\u4f60\u505a\u7684\u662f\u7968\u636e\u8bc6\u522b\u3001\u622a\u56fe\u6587\u5b57\u63d0\u53d6\u8fd9\u7c7b\u4e1a\u52a1&#xff0c;\u8d85\u5206\u540e\u7684\u53ef\u8bfb\u6027\u8981\u771f\u673a\u5b9e\u6d4b\u2014\u2014\u6a21\u578b\u8865\u51fa\u6765\u7684&#034;\u7ec6\u8282&#034;\u53ef\u80fd\u4e0d\u662f\u771f\u5b9e\u7684\u6587\u5b57&#xff0c;\u800c\u662f\u770b\u8d77\u6765\u50cf\u6587\u5b57\u7684\u7eb9\u7406\u3002<\/p>\n<hr \/>\n<h3 id=\"\u516d\u3001\u4e94\u4e2a\u5b9e\u64cd\u6ce8\u610f\u4e8b\u9879\">\u516d\u3001\u4e94\u4e2a\u5b9e\u64cd\u6ce8\u610f\u4e8b\u9879<\/h3>\n<h4 id=\"\u6ce8\u610f-1\uff1a\u5206\u6790\u5668\u5fc5\u987b\u914d\u5bf9\u9500\u6bc1\">\u6ce8\u610f 1&#xff1a;\u5206\u6790\u5668\u5fc5\u987b\u914d\u5bf9\u9500\u6bc1<\/h4>\n<p>async aboutToDisappear(): Promise&lt;void&gt; {<br \/>\n  if (this.analyzer) {<br \/>\n    await this.analyzer.destroy();<br \/>\n    this.analyzer &#061; null;<br \/>\n  }<br \/>\n}<\/p>\n<p>\u5fd8\u4e86 destroy&#xff0c;NPU \u8d44\u6e90\u6cc4\u6f0f\u3002\u53cd\u590d\u8fdb\u51fa\u9875\u9762&#xff0c;\u5185\u5b58\u6301\u7eed\u6da8\u3002<\/p>\n<h4 id=\"\u6ce8\u610f-2\uff1a\u5927\u56fe\u5148\u538b\u7f29\u518d\u9001\u5165\">\u6ce8\u610f 2&#xff1a;\u5927\u56fe\u5148\u538b\u7f29\u518d\u9001\u5165<\/h4>\n<p>\u8f93\u5165\u8d85\u8fc7 2048\u00d72048 \u4f1a\u62a5\u9519\u3002\u4ece\u76f8\u518c\u9009\u7684\u539f\u56fe\u53ef\u80fd\u662f 4000\u00d73000&#xff0c;\u5fc5\u987b\u5148\u7f29\u5230 2048 \u4ee5\u5185\u518d\u9001\u5165&#xff1a;<\/p>\n<p>async compressToMax(src: image.PixelMap, maxSize: number): Promise&lt;image.PixelMap&gt; {<br \/>\n  const info &#061; await src.getImageInfo();<br \/>\n  if (info.size.height &lt;&#061; maxSize &amp;&amp; info.size.width &lt;&#061; maxSize) {<br \/>\n    return src;<br \/>\n  }<br \/>\n  \/\/ \u7b49\u6bd4\u7f29\u653e<br \/>\n  const ratio &#061; maxSize \/ Math.max(info.size.width, info.size.height);<br \/>\n  return src.scale(ratio, ratio);<br \/>\n}<\/p>\n<h4 id=\"\u6ce8\u610f-3\uff1a\u5904\u7406\u8fc7\u7a0b\u7ed9\u7528\u6237\u53cd\u9988\">\u6ce8\u610f 3&#xff1a;\u5904\u7406\u8fc7\u7a0b\u7ed9\u7528\u6237\u53cd\u9988<\/h4>\n<p>\u8d85\u5206\u4e0d\u662f\u5373\u65f6\u5b8c\u6210\u7684\u30022048\u00d72048 \u7684\u56fe\u5728\u4e2d\u7aef\u673a\u578b\u4e0a\u53ef\u80fd\u8981 1-2 \u79d2\u3002\u5982\u679c\u4e0d\u63d0\u793a\u7528\u6237&#xff0c;\u7528\u6237\u4f1a\u4ee5\u4e3a App \u5361\u6b7b\u4e86\u3002<\/p>\n<p>\u52a0\u4e00\u4e2a loading \u72b6\u6001&#xff0c;\u5904\u7406\u5b8c\u518d\u663e\u793a\u7ed3\u679c\u56fe\u3002<\/p>\n<h4 id=\"\u6ce8\u610f-4\uff1a\u5f02\u5e38\u5fc5\u987b-catch\">\u6ce8\u610f 4&#xff1a;\u5f02\u5e38\u5fc5\u987b catch<\/h4>\n<p>process() \u53ef\u80fd\u56e0\u4e3a\u5404\u79cd\u539f\u56e0\u5931\u8d25&#xff1a;\u56fe\u7247\u683c\u5f0f\u4e0d\u652f\u6301\u3001NPU \u8d44\u6e90\u88ab\u5360\u6ee1\u3001\u5185\u5b58\u4e0d\u8db3\u3002\u4e00\u5b9a\u8981 try\/catch&#xff0c;\u5931\u8d25\u4e86\u7ed9\u7528\u6237\u63d0\u793a&#xff0c;\u4e0d\u8981\u9759\u9ed8\u541e\u6389\u3002<\/p>\n<h4 id=\"\u6ce8\u610f-5\uff1a\u4e0d\u8981\u5728\u6eda\u52a8\u5217\u8868\u91cc\u6279\u91cf\u8d85\u5206\">\u6ce8\u610f 5&#xff1a;\u4e0d\u8981\u5728\u6eda\u52a8\u5217\u8868\u91cc\u6279\u91cf\u8d85\u5206<\/h4>\n<p>\u4fe1\u606f\u6d41\u5217\u8868\u91cc\u5982\u679c\u6bcf\u6761\u90fd\u8d85\u5206&#xff0c;NPU \u625b\u4e0d\u4f4f\u3002\u8d85\u5206\u5e94\u8be5\u662f\u7528\u6237\u4e3b\u52a8\u89e6\u53d1\u7684&#xff08;\u70b9\u5f00\u653e\u5927\u3001\u4fdd\u5b58\u9ad8\u6e05\u56fe&#xff09;&#xff0c;\u800c\u4e0d\u662f\u5217\u8868\u81ea\u52a8\u8dd1\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1536\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024072945-6adc5e69aa09e.jpg\" width=\"2730\" \/><\/p>\n<hr \/>\n<h3 id=\"\u4e03\u3001\u5c0f\u7ed3\">\u4e03\u3001\u5c0f\u7ed3<\/h3>\n<p>\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u5728 HarmonyOS 7 \u91cc\u7684\u5b9a\u4f4d&#xff1a;<\/p>\n<li>\u5b83\u662f AI \u753b\u8d28\u589e\u5f3a&#xff0c;\u4e0d\u662f\u63d2\u503c\u653e\u5927\u3002\u8865\u7684\u662f\u9ad8\u9891\u7ec6\u8282&#xff0c;\u4e0d\u662f\u51ed\u7a7a\u9020\u56fe\u3002<\/li>\n<li>\u8f93\u5165\u6700\u5927 2048\u00d72048&#xff0c;\u8f93\u51fa\u56fa\u5b9a 4 \u500d\u653e\u5927&#xff0c;\u53ea\u652f\u6301\u5355\u5f20\u3002<\/li>\n<li>\u4e09\u6bb5\u5f0f\u63a5\u5165&#xff1a;ImageSRAnalyzer.create() \u2192 process(request) \u2192 destroy()\u3002<\/li>\n<li>\u7aef\u4fa7\u8fd0\u884c&#xff0c;\u6570\u636e\u4e0d\u51fa\u8bbe\u5907\u3002\u8fd9\u662f\u5b83\u76f8\u5bf9\u4e91\u7aef\u8d85\u5206\u7684\u6838\u5fc3\u4f18\u52bf\u2014\u2014\u5408\u89c4\u3002<\/li>\n<li>\u6700\u9002\u5408\u7684\u4e1a\u52a1\u573a\u666f&#xff1a;\u4f4e\u6e05\u56fe\u4f20\u8f93\u3001\u538b\u7f29 artifacts \u6062\u590d\u3001\u8001\u7167\u7247\u589e\u5f3a\u3002<\/li>\n<li>\u4e0d\u9002\u5408\u7684\u573a\u666f&#xff1a;\u4e25\u91cd\u5931\u7126\u56fe\u3001\u9700\u8981\u6587\u5b57 OCR \u7684\u7968\u636e\u3001\u88ab\u88c1\u526a\u7684\u56fe\u3002<\/li>\n<p>\u8d85\u5206\u4e0d\u662f\u4e07\u80fd\u7684&#xff0c;\u4f46\u5b83\u662f\u4e00\u4e2a\u6027\u4ef7\u6bd4\u5f88\u9ad8\u7684\u80fd\u529b&#xff1a;\u5341\u884c\u4ee3\u7801\u63a5\u5165&#xff0c;\u6362\u6765\u753b\u8d28\u63d0\u5347 &#043; \u5e26\u5bbd\u8282\u7701 &#043; \u5408\u89c4\u53d9\u4e8b&#xff0c;\u4e09\u4ef6\u4e8b\u4e00\u6b21\u7ed3\u6e05\u3002<\/p>\n<h4 id=\"\u7559\u4e2a\u5c0f\u4efb\u52a1\">\u7559\u4e2a\u5c0f\u4efb\u52a1<\/h4>\n<li>\u65b0\u5efa\u5de5\u7a0b&#xff0c;\u63a5\u5165\u9009\u56fe &#043; \u8d85\u5206 &#043; \u663e\u793a\u7ed3\u679c&#xff0c;\u8dd1\u901a\u5b8c\u6574\u94fe\u8def\u3002<\/li>\n<li>\u627e\u4e00\u5f20 JPEG \u538b\u7f29\u5f88\u5389\u5bb3\u7684\u56fe&#xff0c;\u9001\u8fdb\u8d85\u5206&#xff0c;\u5bf9\u6bd4\u524d\u540e\u6548\u679c\u3002<\/li>\n<li>\u6545\u610f\u4f20\u4e00\u5f20\u8d85\u8fc7 2048\u00d72048 \u7684\u56fe&#xff0c;\u770b\u62a5\u9519\u4fe1\u606f\u662f\u4ec0\u4e48\u3002<\/li>\n<hr \/>\n<p>\u672c\u6587\u57fa\u4e8e HarmonyOS 7 Core Vision Kit API 26 \u7f16\u5199&#xff0c;\u793a\u4f8b\u4ee3\u7801\u53ef\u5728 DevEco Studio \u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u5411&#xff1a;\u56fe\u50cf\u8d85\u5206 \u00b7 Core Vision Kit\u4e00\u3001\u5148\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;\u653e\u5927 vs \u8d85\u5206\u5f88\u591a\u4eba\u628a\\&#8221;\u56fe\u50cf\u653e\u5927\\&#8221;\u548c\\&#8221;\u56fe\u50cf\u8d85\u5206\\&#8221;\u5f53\u6210\u4e00\u56de\u4e8b\u3002\u8fd9\u662f\u4e24\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u6280\u672f\u8def\u7ebf\u3002\u4f20\u7edf\u653e\u5927&#xff08;\u63d2\u503c&#xff09;&#xff1a;\u628a\u4e00\u5f20\u4f4e\u5206\u8fa8\u7387\u56fe\u7247\u7684\u50cf\u7d20&#xff0c;\u7528\u7b97\u6cd5\u5e73\u6ed1\u5730\u94fa\u5f00\u3002\u56fe\u53d8\u5927\u4e86&#xff0c;\u4f46\u4fe1\u606f\u6ca1\u6709\u589e\u52a0\u2014\u2014\u539f\u6765\u7cca\u7684\u5730\u65b9\u8fd8\u662f\u7cca&#xff0c;\u53ea\u662f\u7cca\u5f97\u66f4\u5927\u4e86\u3002\u4f60\u7528 PS \u628a\u4e00\u5f20 500\u00d7500 \u7684\u56fe\u62c9\u5230 2000\u00d72000&#xff0c;\u672c<\/p>\n","protected":false},"author":2,"featured_media":117274,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12392,280],"topic":[],"class_list":["post-117276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-12392","tag-harmonyos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/117276.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u65b9\u5411&#xff1a;\u56fe\u50cf\u8d85\u5206 \u00b7 Core Vision Kit\u4e00\u3001\u5148\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;\u653e\u5927 vs \u8d85\u5206\u5f88\u591a\u4eba\u628a&quot;\u56fe\u50cf\u653e\u5927&quot;\u548c&quot;\u56fe\u50cf\u8d85\u5206&quot;\u5f53\u6210\u4e00\u56de\u4e8b\u3002\u8fd9\u662f\u4e24\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u6280\u672f\u8def\u7ebf\u3002\u4f20\u7edf\u653e\u5927&#xff08;\u63d2\u503c&#xff09;&#xff1a;\u628a\u4e00\u5f20\u4f4e\u5206\u8fa8\u7387\u56fe\u7247\u7684\u50cf\u7d20&#xff0c;\u7528\u7b97\u6cd5\u5e73\u6ed1\u5730\u94fa\u5f00\u3002\u56fe\u53d8\u5927\u4e86&#xff0c;\u4f46\u4fe1\u606f\u6ca1\u6709\u589e\u52a0\u2014\u2014\u539f\u6765\u7cca\u7684\u5730\u65b9\u8fd8\u662f\u7cca&#xff0c;\u53ea\u662f\u7cca\u5f97\u66f4\u5927\u4e86\u3002\u4f60\u7528 PS \u628a\u4e00\u5f20 500\u00d7500 \u7684\u56fe\u62c9\u5230 2000\u00d72000&#xff0c;\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117276.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-24T07:29:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024072943-6adc5e67b842b.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117276.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117276.html\",\"name\":\"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-24T07:29:48+00:00\",\"dateModified\":\"2026-10-24T07:29:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117276.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117276.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117276.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/117276.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u65b9\u5411&#xff1a;\u56fe\u50cf\u8d85\u5206 \u00b7 Core Vision Kit\u4e00\u3001\u5148\u533a\u5206\u4e24\u4e2a\u6982\u5ff5&#xff1a;\u653e\u5927 vs \u8d85\u5206\u5f88\u591a\u4eba\u628a\"\u56fe\u50cf\u653e\u5927\"\u548c\"\u56fe\u50cf\u8d85\u5206\"\u5f53\u6210\u4e00\u56de\u4e8b\u3002\u8fd9\u662f\u4e24\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u6280\u672f\u8def\u7ebf\u3002\u4f20\u7edf\u653e\u5927&#xff08;\u63d2\u503c&#xff09;&#xff1a;\u628a\u4e00\u5f20\u4f4e\u5206\u8fa8\u7387\u56fe\u7247\u7684\u50cf\u7d20&#xff0c;\u7528\u7b97\u6cd5\u5e73\u6ed1\u5730\u94fa\u5f00\u3002\u56fe\u53d8\u5927\u4e86&#xff0c;\u4f46\u4fe1\u606f\u6ca1\u6709\u589e\u52a0\u2014\u2014\u539f\u6765\u7cca\u7684\u5730\u65b9\u8fd8\u662f\u7cca&#xff0c;\u53ea\u662f\u7cca\u5f97\u66f4\u5927\u4e86\u3002\u4f60\u7528 PS \u628a\u4e00\u5f20 500\u00d7500 \u7684\u56fe\u62c9\u5230 2000\u00d72000&#xff0c;\u672c","og_url":"https:\/\/www.wsisp.com\/helps\/117276.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-24T07:29:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024072943-6adc5e67b842b.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117276.html","url":"https:\/\/www.wsisp.com\/helps\/117276.html","name":"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-24T07:29:48+00:00","dateModified":"2026-10-24T07:29:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117276.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117276.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117276.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7aef\u4fa7\u56fe\u50cf\u8d85\u5206\u63a5\u5165\u6307\u5357\uff1aHarmonyOS 7 \u56db\u500d\u9ad8\u6e05\u653e\u5927\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=117276"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/117274"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117276"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}