Hướng dẫn nhanh về EIS cho Android
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
- Thiết lập môi trường phát triển cho tính năng Ổn định hình ảnh điện tử.
- Trải nghiệm bản xem trước máy ảnh được ổn định trong một ứng dụng mẫu.
Mở dự án mẫu
Phần bắt đầu nhanh này sử dụng OpenGL, một giao diện lập trình để kết xuất đồ hoạ vectơ 2D và 3D. Xem lại phần Bật ARCore trước khi bắt đầu các bước sau.
Tải dự án mẫu bằng cách sao chép kho lưu trữ bằng lệnh sau:
git clone https://github.com/google-ar/arcore-android-sdk.git
Trong Android Studio, hãy mở dự án mẫu hello_eis_kotlin, nằm trong thư mục con samples
trong thư mục arcore-android-sdk
.
Chạy mẫu
Ứng dụng mẫu HelloEIS cho phép bạn bật/tắt tính năng ổn định hình ảnh cho bản xem trước của máy ảnh trên các thiết bị được hỗ trợ.
Đảm bảo thiết bị Android của bạn đã kết nối với máy phát triển rồi nhấp vào biểu tượng Run
trong Android Studio.
Thiết bị của bạn có thể nhắc bạn cài đặt hoặc cập nhật Dịch vụ Google Play cho AR nếu dịch vụ này bị thiếu hoặc đã lỗi thời. Nhấn vào CONTINUE để cài đặt ứng dụng này từ Cửa hàng Google Play.
Bật/tắt EIS
Nhấn vào biểu tượng bánh răng rồi chọn Electronic Image Stabilization (EIS) để bật/tắt tính năng EIS.
Chọn Enable EIS để bật tính năng EIS.
![]()
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThis guide provides steps to set up your development environment for Electronic Image Stabilization (EIS) using a sample project that leverages OpenGL for rendering.\u003c/p\u003e\n"],["\u003cp\u003eYou can experience the stabilized camera preview by running the provided HelloEIS sample app on a supported Android device with ARCore enabled.\u003c/p\u003e\n"],["\u003cp\u003eThe sample app allows you to toggle EIS on or off through a settings menu, letting you compare the stabilized and unstabilized camera feeds.\u003c/p\u003e\n"]]],[],null,["# EIS quickstart for Android\n\n- Set up your development environment for Electronic Image Stabilization.\n- Experience the stabilized camera preview in a sample app.\n\nOpen the sample project\n-----------------------\n\nThis quickstart uses [OpenGL](https://en.wikipedia.org/wiki/OpenGL), a\nprogramming interface for rendering 2D and 3D vector graphics. Review\n[Enable ARCore](/ar/develop/java/enable-arcore) before getting started with the\nfollowing steps.\n\nGet the sample project by cloning the repository with the following command: \n\n```\ngit clone https://github.com/google-ar/arcore-android-sdk.git\n```\n\nIn Android Studio, open the **hello_eis_kotlin** sample project, located in the `samples` subdirectory within the `arcore-android-sdk` directory.\n\nRun the sample\n--------------\n\nThe HelloEIS sample app lets you toggle the image stabilization for camera preview on supported devices.\n\nMake sure your Android device is connected to the development machine and click\n**Run** in Android Studio.\n\nYour device may prompt you to install or update\n[Google Play Services for AR](https://play.google.com/store/apps/details?id=com.google.ar.core)\nif it is missing or out of date. Tap **CONTINUE** to install it from the\nGoogle Play Store.\n\nToggle EIS\n----------\n\nTap the gear icon and select **Electronic Image Stabilization (EIS)** to toggle EIS on/off.\nSelect **Enable EIS** to enable EIS."]]