CameraX vs Camera2 (library development)

This page summarizes the projects mentioned and recommended in the original post on /r/androiddev

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • react-native-vision-camera

    📸 A powerful, high-performance React Native Camera library.

  • I'm the author of react-native-vision-camera, a library that exposes platform native Camera features to React Native.

  • CameraView

    📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size. (by natario1)

  • ..and a few wrappers around Camera2, such as CameraView and camerakit-android (this one even uses C++ for rendering the Preview, that's interesting for me since I want to draw on the Surface using Skia C++!).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • camerakit-android

    Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.

  • ..and a few wrappers around Camera2, such as CameraView and camerakit-android (this one even uses C++ for rendering the Preview, that's interesting for me since I want to draw on the Surface using Skia C++!).

  • camera-samples

    Multiple samples showing the best practices in camera APIs on Android.

  • For the device formats, what you get on CameraX should be what you get on Camera2, but you can verify with the Camera2Video sample app. It lists the available resolutions and framerates (which notably calculates it in largely the same way that you're already doing).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts