diff --git a/README.md b/README.md index bf272e1266cee957b7eb1f89bbcbba8fe760fa9a..9a9bda7d3d567e1ef6911df02d22dddd206e35b7 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 0f9cd89182a9db4bfa7512949ca79e2eed8a2f0c..94dd90fa6e835118c175081c5add7bbc11fbcf27 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 016d80baf422d923aaed828576a76917bd27613e..1a2563be5a62fbd911845399005f9af9d4dff770 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,