> For the complete documentation index, see [llms.txt](https://krisray.gitbook.io/smartpanorama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krisray.gitbook.io/smartpanorama/master.md).

# 屋联全景相机

#### 1、在根目录的build.gradle中添加仓库

```
allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://dl.bintray.com/djjackylei/maven" }
    }

}
```

#### 2、在module的build.gradle文件中添加依赖和属性配置：

```
android {
    defaultConfig {
        ndk {
           //设置支持的SO库架构
            abiFilters 'armeabi-v7a', 'arm64-v8a'
        }
    }
}

dependencies {
    implementation 'com.wulian:SmartPanorama:1.0.4'
}

```

#### 3、使用

```
PanoramaSDK.getInstance()
        .setOutputFolder("/sdcard/SmartPanorama")//设置全景照片输出目录
        .setCallback(new PanoramaCallback() {
            @Override
            public void onConnectSucceed() {//连接相机成功回调

                System.out.println("succeed");
            }

            @Override
            public void onConnectFailed(String msg) {//连接相机失败回调

                System.out.println("failed:" + msg);
            }

            @Override
            public void onCapture(String path) {//拍照完成回调

                System.out.println(path);

            }
        })
        .initCfg()//初始化配置
        .connectCamera("720_d10b39");//连接全景相机的WIFI
```

#### �4、注意

相机保存全景照片需要使用读写存储卡权限，请在连接相机前做好动态权限申请


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://krisray.gitbook.io/smartpanorama/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
