diff --git a/README.en.md b/README.en.md index 6a274b8623836d8f5723f4ee3c08f4fac13bbdaf..def9371578aa7abbff7a02d59cfa8351263cd156 100644 --- a/README.en.md +++ b/README.en.md @@ -1,17 +1,17 @@ -### System-Level Camera Experience for a Third-Party Camera App +# System-Level Camera Experience for a Third-Party Camera App This sample demonstrates a third-party camera app featuring system-level camera-level effects and functionalities, such as resolution control, moving photo, video stabilization, and continuous zoom. These capabilities are achieved through the open camera capabilities of HarmonyOS. -### Preview +## Preview ![Preview](screenshots/capture.en.png) ![Preview](screenshots/record.en.png) -### How to Use +## How to Use You can touch the round button at the bottom of the screen to take a photo, adjust the zoom and flash settings, and preview the photo. -### Project Directory +## Project Directory ``` ├──entry/src/main/ets/ @@ -28,17 +28,17 @@ You can touch the round button at the bottom of the screen to take a photo, adju └──entry/src/main/resource // Static resources ``` -### How to Implement +## How to Implement Use Camera Kit to take photos and use **photoAccessHelper** to save photos and videos. -### Required Permissions +## Required Permissions 1. Apply for the access control list permission to obtain the permission to save photos to the system app Gallery. 2. Camera permissions: **ohos.permission.CAMERA** and **ohos.permission.MICROPHONE** 3. Media library permissions: **ohos.permission.READ_IMAGEVIDEO** and **ohos.permission.WRITE_IMAGEVIDEO** -### Constraints +## Constraints 1. The sample app is supported only on Huawei phones running the standard system. diff --git a/README.md b/README.md index 2e71c7e50bb5d6b771bf73f114a94b2ae3a6a189..714f35d18d5cdedba216f7ecc98dd25a7337c553 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ -### 生态应用相机实现系统级相机体验 +# 生态应用相机实现系统级相机体验 本文针对三方相机开发场景,基于HarmonyOS提供的相机开放能力,实现系统相机级别的效果和能力,比如分辨率、动图、视频防抖、连续变焦等。 -### 效果展示 +## 效果展示 ![预览图](screenshots/capture.png) ![预览图](screenshots/record.png) -### 使用说明 +## 使用说明 应用可以点击底部圆形按钮拍摄照片,同时可以调节变焦、闪光灯等参数,拍摄完成后可以预览照片。 -### 工程目录 +## 工程目录 ``` ├──entry/src/main/ets/ @@ -28,17 +28,17 @@ └──entry/src/main/resource // 应用静态资源目录 ``` -### 实现思路 +## 实现思路 使用camera kit拍摄以及photoAccessHelper进行保存图片和视频。 -### 相关权限 +## 相关权限 1、需要申请ACL提权,获得权限将照片存入系统图库 2、相机权限:ohos.permission.CAMERA、ohos.permission.MICROPHONE 3、媒体库权限:ohos.permission.READ_IMAGEVIDEO、ohos.permission.WRITE_IMAGEVIDEO -### 约束与限制 +## 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。