Skip to content

Commit

Permalink
新增API说明
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyuliang committed Aug 19, 2020
1 parent 2d4ac92 commit 77798ee
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author : SteveZ
```

# Sample
注意:UVC摄像头调用需要依赖libuvccamera库

```text
public void openCamera(){
Expand Down Expand Up @@ -41,6 +42,28 @@ public void openCamera(){
}
```

```text
通过CameraManager.getInstance()可以配置调用的摄像头和摄像头的调用方式
1.Camera1的调用方式:
CameraManager.getInstance(
new CameraFacing.Builder().setFacingType(FacingType.OTHER)
.setCameraId(0).build(),
CameraApiType.CAMERA1, getBaseContext())
2.Camera2的调用方式:
CameraManager.getInstance(
new CameraFacing.Builder().setFacingType(FacingType.OTHER)
.setCameraId(0).build(),
CameraApiType.CAMERA2, getBaseContext(),new Handler(getMainLooper()),Camera2Activity.this.getLifecycle());
3.UvcCamera的调用方式:
CameraManager.getInstance(
new CameraFacing.Builder().setFacingType(FacingType.UVC)
.setCameraId(123)
.setVendorId(ConstantsConfig.getInstance().getVid())
.setProductId(ConstantsConfig.getInstance().getPid()).build(),
CameraApiType.CAMERAUVC, getBaseContext(),new Handler(getMainLooper()),CameraUvcActivity.this.getLifecycle());
注意:UVC摄像头调用需要依赖libuvccamera库
```

-----

## With improved
Expand Down
2 changes: 2 additions & 0 deletions camerakit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Author : SteveZ
```

## Sample
注意:1.UVC摄像头调用需要依赖libuvccamera库
2.camerakit的相机部分需要依赖camera库

### BinocularCameraTextureView / BinocularCameraGLSurfaceView

Expand Down

0 comments on commit 77798ee

Please sign in to comment.