Browse Source

Merge remote-tracking branch 'origin/master'

main
jiangdongguo 7 years ago
parent
commit
2ae9515d9a
  1. 6
      README.md

6
README.md

@ -1,6 +1,6 @@
AndroidUSBCamera AndroidUSBCamera
============ ============
AndroidUSBCamera is developed based on the [saki4510t/UVCCamera](https://github.com/saki4510t/UVCCamera), the project of USB Camera (UVC equipment) and the use of video data acquisition are highly packaged, and it can help developers using USB Camera devices easily by a few simple APIs. By using AndroidUSBCamera,you can detect and connect to a USB Camera simply.And you also can use it to realize taking picture,recording mp4,switching resolutions ,getting h.264/aac/yuv(nv21) stream and setting  camera's contrast or brightness,etc. AndroidUSBCamera is developed based on the [saki4510t/UVCCamera](https://github.com/saki4510t/UVCCamera), the project of USB Camera (UVC equipment) and the use of video data acquisition are highly packaged, and it can help developers using USB Camera devices easily by a few simple APIs. By using AndroidUSBCamera,you can detect and connect to a USB Camera simply.And you also can use it to realize taking picture,recording mp4,switching resolutions ,getting h.264/aac/yuv(nv21) stream and setting  camera's contrast or brightness,supporting 480P、720P、1080P and higher,etc.
[中文文档: AndroidUSBCamera,UVCCamera开发通用库](http://blog.csdn.net/andrexpert/article/details/78324181) [中文文档: AndroidUSBCamera,UVCCamera开发通用库](http://blog.csdn.net/andrexpert/article/details/78324181)
@ -21,7 +21,7 @@ allprojects {
Step 2. Add the dependency Step 2. Add the dependency
```java ```java
dependencies { dependencies {
compile 'com.github.jiangdongguo:AndroidUSBCamera:2.0.3' compile 'com.github.jiangdongguo:AndroidUSBCamera:2.1.0'
} }
``` ```
### 2. APIs Introduction ### 2. APIs Introduction
@ -140,7 +140,7 @@ mCameraHelper.getModelValue(UVCCameraHelper.MODE_CONTRAST);
```java ```java
mCameraHelper.updateResolution(widht, height); mCameraHelper.updateResolution(widht, height);
``` ```
![Connecting gif](https://github.com/jiangdongguo/AndroidUSBCamera/blob/master/gifs/resolution.gif) ![Connecting gif](https://github.com/jiangdongguo/AndroidUSBCamera/blob/master/gifs/2.1.0.gif)
At last,remember adding permissions:   At last,remember adding permissions:  
``` ```
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Loading…
Cancel
Save