# WebGetCamerImage **Repository Path**: harmonyos_samples/web-get-camer-image ## Basic Information - **Project Name**: WebGetCamerImage - **Description**: 本示例介绍如何在HTML页面中拉起原生相机进行拍照,并获取返回的图片。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 10 - **Forks**: 12 - **Created**: 2024-06-15 - **Last Updated**: 2026-01-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Obtaining Camera from Web Pages ### Overview This sample shows how to start the native camera on an HTML page to take a photo and obtain the returned photos. ### Preview ![Index](screenshot/device/pic.png) ##### How to Use 1. Click the **Camera** button on the HTML page to start the native camera to take a photo. 2. The photo is displayed in the HTML **** tag. ### Project Directory ``` ├──entry/src/main/ets/ │ ├──entryability │ │ └──EntryAbility.ets // Entry point class │ └──pages │ └──Index.ets // App home page └──entry/src/main/resources // Static resources ``` ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. 2. The HarmonyOS version must be HarmonyOS 5.0.5 Release or later. 3. The DevEco Studio version must be DevEco Studio 5.0.5 Release or later. 4. The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later.