Recap multi-camera API from Android Dev Summit 2018

860bf040d996601213e05747dd661c23?s=47 Tomoaki Imai
December 10, 2018

Recap multi-camera API from Android Dev Summit 2018

Talk about what we can do with multi-camera API on Android Pie

860bf040d996601213e05747dd661c23?s=128

Tomoaki Imai

December 10, 2018
Tweet

Transcript

  1. Recap multi-camera API from Android Dev Summit 2018 Chanoma, inc.

    Tomoaki Imai
  2. https://chomp.app/ Located in Bay Area since 2016 Author of Android

    アプリ設計パターン⼊入⾨門
  3. https://youtu.be/u38wOv2a_dA

  4. What’s new in Android P? • Physical cameras are exposed

    to third-party app developers Pre-Pie Pie and beyond
  5. What’s new? • Open multiple physical cameras in one session

    ‣ Developers can retrieve and replace two camera streams simultaneously
  6. What’s new? • Open multiple physical camera in one session

    Camera1 Camera2 Pre-Pie
  7. What’s new? • Open multiple physical camera in one session

    PhysicalCamera0 PhysicalCamera1 Pie and beyond
  8. What’s new? • Open multiple physical camera in one session

    PhysicalCamera0 PhysicalCamera1
  9. What’s new? • Open multiple physical camera in one session

    PhysicalCamera0 PhysicalCamera1
  10. What’s new? • Open multiple physical camera in one session

    PhysicalCamera0 PhysicalCamera1
  11. What can we do with this? • Usage ‣ Calculate

    depth map using 2 cameras ‣ Zoom using 2 cameras depending on focal length
  12. Restriction • Physical cameras should be in the same logical

    group
  13. Restriction • Physical cameras should be in the same logical

    group
  14. Restriction • Physical cameras should be in the same logical

    group Pixel3 [0] : BACK_CAMERA [1] : LOGICAL_CAMERA(FRONT) [2] : PHYSCIAL_CAMERA_1 [3] : PHYSCIAL_CAMERA_2
  15. Restriction

  16. Restriction • Very few supported device as of Dec, 2018

    ‣ Pixel 3 ‣ Huawei Mate 20 Series
  17. How does the process change? setup camera ID start Preview

    open Camera
  18. How does the process change? setup camera ID start Preview

    open Camera
  19. How does the process change? setup camera ID start Preview

    start Camera
  20. How does the process change? setup camera ID start Preview

    open Camera
  21. Demo https://github.com/tomoima525/ MultiCameraSample

  22. Future of Camera on Android • More devices to support

    multi-camera API https://source.android.com/compatibility/android-cdd#7_5_4_camera_api_behavior
  23. Future of Camera on Android • Less fragmentation ‣ Project

    Treble https://android-developers.googleblog.com/2018/11/an-update-on-project- treble.html Understand the impact of Generic System Images (GSI) (Android Dev Summit '18) https://youtu.be/Y-HmCIHD63w
  24. Future of Camera on Android • Less frustration? ‣ Might

    become a part of Jetpack?? https://youtu.be/FV3iN4PIB5U?t=2757 (46:00)
  25. What should we catch up? • Understand the basic functionality

    of Camera ‣ WTF focus? ‣ WTF Aperture? ‣ WTF white balance?
  26. What should we catch up? • Understand the basic functionality

    of Camera https://youtu.be/QEVm5MMBluk
  27. What should we catch up? • Learn Camera2 Framework ‣

    WTF CameraCaptureSession?? ‣ WTF CameraCharacteristics? ‣ WTF with Camera2 API?
  28. What should we catch up? • Learn Camera2 Framework https://youtu.be/WU1tzOIpmFw

    https://speakerdeck.com/tomoima525/camera2-api-and-beyond
  29. Wrap up • multi-camera support allows us to control multiple

    stream simpler • Not many devices are supported as of December 2018