Android 適用的 EIS 快速入門導覽課程
- 設定電子影像穩定技術的開發環境。
- 在範例應用程式中體驗穩定的相機預覽畫面。
開啟範例專案
本快速入門導覽課程使用 OpenGL,這是用於算繪 2D 和 3D 向量圖形的程式設計介面。請先詳閱「啟用 ARCore」,再開始執行下列步驟。
使用下列指令複製存放區,取得範例專案:
git clone https://github.com/google-ar/arcore-android-sdk.git
在 Android Studio 中,開啟位於 arcore-android-sdk
目錄內 samples
子目錄中的 hello_eis_kotlin 範例專案。
執行範例
HelloEIS 範例應用程式可讓您在支援的裝置上切換相機預覽畫面的防震功能。
請確認 Android 裝置已連上開發機器,然後在 Android Studio 中按一下 Run
。
如果裝置缺少或版本過舊,系統可能會提示您安裝或更新 Google Play 服務 - AR 適用。輕觸 CONTINUE 即可從 Google Play 商店安裝。
切換 EIS
輕觸齒輪圖示並選取 Electronic Image Stabilization (EIS) 即可開啟/關閉 EIS。選取 Enable EIS 即可啟用 EIS。
![]()
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["This guide provides steps to set up your development environment for Electronic Image Stabilization (EIS) using a sample project that leverages OpenGL for rendering."],["You can experience the stabilized camera preview by running the provided HelloEIS sample app on a supported Android device with ARCore enabled."],["The sample app allows you to toggle EIS on or off through a settings menu, letting you compare the stabilized and unstabilized camera feeds."]]],[]]