第35讲 AE手动曝光实战 - Android Camera2 API

本讲是Android Camera专题系列的第35讲,我们介绍Android Camera2 API专题的AE手动曝光实战。

更多资源:

资源 描述
在线课程 极客笔记在线课程
知识星球 星球名称:深入浅出Android Camera
星球ID: 17296815
Wechat 极客笔记圈

GeekCamera2 手动调整ISO

UI Setup

MainActivity#cameraSetup
  |--> final SeekBar iso_seek_bar = findViewById(R.id.iso_seekbar);
  |--> iso_seek_bar.setOnSeekBarChangeListener(null);
  |--> iso_seek_bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener()

UI调整ISO流程

MainActivity#iso_seek_bar#onProgressChanged
  |--> Preview#setISO
    |--> CameraController2#setISO
      |--> CameraSetting#setAEMode
          |--> CaptureRequest.CONTROL_AE_MODE to OFF
          |--> CaptureRequest.SENSOR_SENSITIVITY to iso
          |--> CaptureRequest.SENSOR_EXPOSURE_TIME to exp_time
          |--> CaptureRequest.SENSOR_FRAME_DURATION to sensor_frame_duration

GeekCamera2 手动调整曝光时间

UI Setup

MainActivity#cameraSetup
  |--> final SeekBar exposure_time_seek_bar = findViewById(R.id.exposure_time_seekbar);
  |--> exposure_time_seek_bar.setOnSeekBarChangeListener(null);
  |--> exposure_time_seek_bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener

UI 调整曝光时间

MainActivity#exposure_time_seek_bar#onProgressChanged
  |--> Preview#setExposureTime
    |--> CameraController2#setExposureTime
      |--> CameraSetting#setAEMode
        |--> CaptureRequest.CONTROL_AE_MODE to OFF
        |--> CaptureRequest.SENSOR_SENSITIVITY to iso
        |--> CaptureRequest.SENSOR_EXPOSURE_TIME to exp_time
        |--> CaptureRequest.SENSOR_FRAME_DURATION to sensor_frame_duration

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程

Android Camera2 API