From cb1ffa82e3d14e3878ab5f86355f5db24a1b1563 Mon Sep 17 00:00:00 2001 From: CodingGorit Date: Thu, 18 Sep 2025 19:11:42 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20README=20=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.en.md b/README.en.md index 8b75790..1e0a89b 100644 --- a/README.en.md +++ b/README.en.md @@ -39,9 +39,9 @@ This example utilizes the ArkTS API provided by `@ohos.ai.mindSporeLite` to impl ## Implementation Details The terminal image segmentation model used in this sample application is `rmbg_fp16.ms`, placed in the `entry\src\main\resources\rawfile` project directory. -- The home page uses [@ohos.file.photoAccessHelper](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-photoaccesshelper) (image file selection) to open the album, [@ohos.multimedia.image](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-image) (image processing effects), and [@ohos.file.fs](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-file-fs) (basic file operations) APIs to fetch and process album images. The complete code can be found in [Index.ets](entry/src/main/ets/pages/Index.ets) and [ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets). +- The home page uses [@ohos.file.photoAccessHelper](https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-photoaccesshelper) (for album management) to open the album, [@ohos.multimedia.image](https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-image) (for image processing), and [@ohos.file.fs](https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-file-fs) (for file management) APIs to fetch and process album images. The complete code can be found in [Index.ets](entry/src/main/ets/pages/Index.ets) and [ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets). -- The image composition page uses the [@ohos.ai.mindSporeLite](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-mindsporelite) (inference capability) API to perform on-device inference. The complete code can be found in [Predict.ets](entry/src/main/ets/utils/Predict.ets). +- The image composition page uses the [@ohos.ai.mindSporeLite](https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-mindsporelite) (for on-device ai framework) API to perform on-device inference. The complete code can be found in [Predict.ets](entry/src/main/ets/utils/Predict.ets). - The inference function is called, and the results are processed. The complete code can be found in [ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets). diff --git a/README.md b/README.md index 4508870..0d20192 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ ## 具体实现 本示例程序中使用的终端图像分割模型为`rmbg_fp16.ms`,放置在`entry\src\main\resources\rawfile`工程目录下。 -- 首页调用[@ohos.file.photoAccessHelper](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-photoaccesshelper)(图片文件选择)拉起相册、[@ohos.multimedia.image](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-image) (图片处理效果)、[@ohos.file.fs](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-file-fs) (基础文件操作) 等API实现相册图片获取及图片处理。完整代码请参见[Index.ets](entry/src/main/ets/pages/Index.ets)、[ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets)。 +- 首页调用[@ohos.file.photoAccessHelper](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-photoaccesshelper)(相册管理模块)拉起相册、[@ohos.multimedia.image](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-image) (图片处理)、[@ohos.file.fs](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-file-fs) (文件管理)等API实现相册图片获取及图片处理。完整代码请参见[Index.ets](entry/src/main/ets/pages/Index.ets)、[ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets)。 -- 图像合成页调用[@ohos.ai.mindSporeLite](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-mindsporelite) (推理能力) API实现端侧推理。完整代码请参见[Predict.ets](entry/src/main/ets/utils/Predict.ets)。 +- 图像合成页调用[@ohos.ai.mindSporeLite](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-mindsporelite) (端侧AI框架) API实现端侧推理。完整代码请参见[Predict.ets](entry/src/main/ets/utils/Predict.ets)。 - 调用推理函数并处理结果。完整代码请参见[ImageGenerate.ets](entry/src/main/ets/pages/ImageGenerate.ets)。 -- Gitee