From c8c754cc051fbd6fcf49a94f2c6549b62d05c870 Mon Sep 17 00:00:00 2001 From: sfChu Date: Mon, 11 Nov 2024 19:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- entry/src/main/ets/common/utils/Camera.ets | 1 - entry/src/main/module.json5 | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bf272e1..9a9bda7 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ ``` ### 具体实现 -* 本实例完成AI文字识别的功能模块主要封装在CameraModel,源码参考:[CameraModel.ets](entry/src/main/ets/common/utils/Camera.ets) 。 +* 本实例完成AI文字识别的功能模块主要封装在CameraModel,源码参考:[Camera.ets](entry/src/main/ets/common/utils/Camera.ets) 。 * 相机模块:在Camera中封装了相机初始化、相机释放。 * 在Index页面通过点击事件触发相机拍摄,在获取到照片输出流后通过@hms.ai.ocr.textRecognition文字识别接口进行识别。 diff --git a/entry/src/main/ets/common/utils/Camera.ets b/entry/src/main/ets/common/utils/Camera.ets index 0f9cd89..94dd90f 100644 --- a/entry/src/main/ets/common/utils/Camera.ets +++ b/entry/src/main/ets/common/utils/Camera.ets @@ -29,7 +29,6 @@ export default class Camera { private cameraInput: camera.CameraInput | undefined = undefined; public previewOutput: camera.PreviewOutput | undefined = undefined; private receiver: image.ImageReceiver | undefined = undefined; - private photoSurfaceId: string | undefined = undefined; private photoOutput: camera.PhotoOutput | undefined = undefined; public captureSession: camera.PhotoSession | undefined = undefined; public result: string = ''; diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 016d80b..1a2563b 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -5,9 +5,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", - "tablet", - "2in1" + "phone" ], "deliveryWithInstall": true, "installationFree": false, -- Gitee