Skip to content

wangcan26/CameraCVGLView

Repository files navigation

CameraCVGLView

This Project is a collection demos of opengl or computer vision based on android camera2 api

camera2 basic demo

The master branch shows a basic demo for displaying camera preview using a SurfaceView with a SurfaceTexture created by OpenGL ES

The demo contains two parts:

CameraRenderView.java

All the functions of camera2 api is encapsulating or to be encapsulated into this java class.

Its lifecycles are as follows:

  1. init(Activity activity)
  2. onResume()
  3. onPause()
  4. deinit()

NVRenderer.h

This file implements a gl environment for rendering things into android SurfaceView

Welcom to join QQ Group: 207298950