项目作者: ML4Mobile

项目描述 :
Sample of camera preview application
高级语言: Java
项目地址: git://github.com/ML4Mobile/AndroidCameraPreview.git
创建时间: 2018-07-25T23:49:47Z
项目社区:https://github.com/ML4Mobile/AndroidCameraPreview

开源协议:Apache License 2.0

下载


AndroidCameraPreview

Sample of camera preview application

—— [[ CAUTION ]] ———————————————————————————————————

This application is a template or a sample for processing camera preview images.

It is using android.hardware.camera API which deprecated since Android 5.0 Lollipop(API 21).

I tested on Android 8.0(API 26) and still running well , but you have to see Camera2 for production use.


Implementations

  1. Request uses permossion if Android version is 6.0 Marshmellow or heigher
  2. Customized surfaceview to show camera preview
  3. Add Camera callback interface for processing images of camera preview

Assumption or restrictions

  1. Preview screen is fixed by portrait normally
  2. Device has facing back camera and available it
  3. Camera supports NV21 image format(YUV image)

Read More