• 大小: 192KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: Java
  • 标签: SurfaceView  人脸检测  

资源简介

双SurfaceView实现手机摄像头预览、监听每一帧做处理绘制浮层效果(Demo画了一个矩形上去)

资源截图

代码片段和文件信息

package com.xzq.camerademo;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumented test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“com.xzq.camerademo“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-27 11:40  CameraDemo\
     文件         147  2018-07-25 13:46  CameraDemo\.gitignore
     目录           0  2018-07-27 11:39  CameraDemo\.idea\
     目录           0  2018-07-27 11:39  CameraDemo\.idea\caches\
     文件         536  2018-07-26 09:20  CameraDemo\.idea\caches\build_file_checksums.ser
     目录           0  2018-07-27 11:39  CameraDemo\.idea\codestyles\
     文件        1803  2018-07-25 13:46  CameraDemo\.idea\codestyles\Project.xml
     文件         626  2018-07-25 13:47  CameraDemo\.idea\gradle.xml
     目录           0  2018-07-27 11:39  CameraDemo\.idea\inspectionProfiles\
     文件        1444  2018-07-26 13:35  CameraDemo\.idea\inspectionProfiles\Project_Default.xml
     目录           0  2018-07-27 11:39  CameraDemo\.idea\libraries\
     文件         541  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_core_common_1_1_1_jar.xml
     文件         655  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_core_runtime_1_1_1.xml
     文件         556  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_lifecycle_common_1_1_1_jar.xml
     文件         695  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_lifecycle_livedata_core_1_1_1.xml
     文件         666  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_lifecycle_runtime_1_1_1.xml
     文件         676  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__android_arch_lifecycle_viewmodel_1_1_1.xml
     文件         543  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_animated_vector_drawable_28_0_0_alpha3.xml
     文件         507  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_appcompat_v7_28_0_0_alpha3.xml
     文件         528  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_asynclayoutinflater_28_0_0_alpha3.xml
     文件         396  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_collections_28_0_0_alpha3_jar.xml
     文件         509  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_constraint_constraint_layout_1_1_2.xml
     文件         433  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_constraint_constraint_layout_solver_1_1_2_jar.xml
     文件         522  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_coordinatorlayout_28_0_0_alpha3.xml
     文件         510  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_cursoradapter_28_0_0_alpha3.xml
     文件         501  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_customview_28_0_0_alpha3.xml
     文件         507  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_documentfile_28_0_0_alpha3.xml
     文件         507  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_drawerlayout_28_0_0_alpha3.xml
     文件         507  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_interpolator_28_0_0_alpha3.xml
     文件         489  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_loader_28_0_0_alpha3.xml
     文件         534  2018-07-25 13:47  CameraDemo\.idea\libraries\Gradle__com_android_support_localbroadcastmanager_28_0_0_alpha3.xml
............此处省略100个文件信息

评论

共有 条评论