From b3182d2a0547b4181815f0ffefeb2cdef3091ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E4=B8=9C=E5=9B=BD?= <765067602@qq.com> Date: Mon, 30 Oct 2017 11:16:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC1.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0f1775c..edc5932 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,17 @@ (1)支持USB Camera设备检测,画面实时预览; (2)支持本地录制mp4格式视频,支持实时获取音视频数据流; (3)支持jpg格式图片抓拍; -(4)支持多种分辨率切换; +(4)支持获取camera支持的分辨率,和分辨率切换;   (5)支持屏蔽声音; - -> AndroidUSBCamera is developed based on the 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 to connect, preview and video data collection by a few simple API. The main functions include: +(6)支持相机自动对焦; + +> AndroidUSBCamera is developed based on the 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 to connect, preview and video data collection by a few simple API. The main functions include:     (1)supports detecting USB Camera equipment, and previewing; (2)supports recording MP4 format video, and acquiring real-time audio and video data; (3)supports capturing JPG format image; - (4)supports switching resolution; - (5)support shielding sound; +   (4)supports getting supported preview sizes,and switching resolution;   + (5)supports shielding sound; + (6)supports camera auto foucs; ## 如何使用AndroidUSBCamera项目 ![效果图](http://img.blog.csdn.net/20171025213631816) @@ -36,7 +38,7 @@ Step 2. Add the dependency ``` dependencies { - compile 'com.github.jiangdongguo:AndroidUSBCamera:v1.2.1' + compile 'com.github.jiangdongguo:AndroidUSBCamera:v1.2.2' } ``` @@ -162,8 +164,12 @@ mUSBManager.updateResolution(this, mUVCCameraView, 320, 240, new USBCameraManage showShortMsg("以切换到分辨率为320x240"); } } - }); -``` + }); + // 获取Camera支持得分辨率 + List list = mUSBManager.getSupportedPreviewSizes(); + // Camera自动对焦 + mUSBManager.startCameraFoucs(); +```   ### 8. 释放引擎资源 release resource From 22aecc86802cc55979da76c3efdb2bb5e16de252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E4=B8=9C=E5=9B=BD?= <765067602@qq.com> Date: Mon, 30 Oct 2017 11:18:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC1.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index edc5932..03d6372 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ (1)支持USB Camera设备检测,画面实时预览; (2)支持本地录制mp4格式视频,支持实时获取音视频数据流; (3)支持jpg格式图片抓拍; -(4)支持获取camera支持的分辨率,和分辨率切换;   +(4)支持获取camera支持的分辨率,和分辨率切换; (5)支持屏蔽声音; (6)支持相机自动对焦; @@ -11,7 +11,7 @@   (1)supports detecting USB Camera equipment, and previewing; (2)supports recording MP4 format video, and acquiring real-time audio and video data; (3)supports capturing JPG format image; -   (4)supports getting supported preview sizes,and switching resolution;   +   (4)supports getting supported preview sizes,and switching resolution; (5)supports shielding sound; (6)supports camera auto foucs; @@ -166,10 +166,10 @@ mUSBManager.updateResolution(this, mUVCCameraView, 320, 240, new USBCameraManage } }); // 获取Camera支持得分辨率 - List list = mUSBManager.getSupportedPreviewSizes(); + List list = mUSBManager.getSupportedPreviewSizes(); // Camera自动对焦 - mUSBManager.startCameraFoucs(); -```   + mUSBManager.startCameraFoucs(); +``` ### 8. 释放引擎资源 release resource