Android Top Camera Libraries

Amit Shekhar
MindOrks
Published in
2 min readNov 30, 2018

I am Amit Shekhar, Co-Founder @ Outcome School • IIT 2010–14 • I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.

This blog will help you in knowing about the Android top camera libraries.

CameraX

CameraX is a camera library by Google. In Google IO 2019, Google added another powerful tool for camera development in Android development called CameraX as part of Jetpack. It is backward compatible till Android 5.0 / Lollipop (API 21) and it works with at least 90% of devices in the market.

CameraView

CameraView aims to help Android developers easily integrate Camera features.

Features

  • Camera preview by placing it in a layout XML (and calling the start method)
  • Configuration by attributes
  • Aspect ratio (app:aspectRatio)
  • Auto-focus (app:autoFocus)
  • Flash (app:flash)

CameraKit-Android

CameraKit takes one of the hardest Android APIs and makes it into a high level and easy to use the library that solves all of your problems.

With CameraKit you are able to seamlessly do the following…

  • Image and video capture seamlessly working with the same preview session.
  • Automatic system permission handling.
  • Automatic preview scaling.
  • Create a CameraView of any size (not just presets!).
  • Automatic output cropping to match your CameraView bounds.
  • Multiple capture methods.
  • METHOD_STANDARD: an image captured normally using the camera APIs.
  • METHOD_STILL: a freeze frame of the CameraView preview (similar to SnapChat and Instagram) for devices with slower cameras.
  • METHOD_SPEED: automatic capture method determination based on measured speed.
  • Built-in continuous focus.
  • Built-in tap to focus.
  • Built-in pinch to zoom.

Fotoapparat

Camera API in Android is hard. Having 2 different API for new and old Camera does not make things any easier. After several years of working with Camera, the developer came up with this library.

What it provides:

  • Camera API which does not allow you to shoot yourself in the foot.
  • Simple yet powerful parameters customization.
  • Standalone custom CameraView which can be integrated into any Activity.
  • Fixes and workarounds for device-specific problems.
  • Both Kotlin and Java friendly configurations.

Thanks

Amit Shekhar

Co-Founder @ Outcome School

Prepare yourself for Android Interview: Android Interview Questions

You can find the Roadmap for Android Developer here: Android Developer Roadmap

Happy Coding 🙂

Clap, share if you like it and follow me for the updates.

Let’s become friends on Twitter, Linkedin, Github, Quora, and Facebook.

--

--

Amit Shekhar
MindOrks

Co-Founder @ Outcome School | Coder | Teacher | Mentor | Open Source | IIT 2010-14 | Android | Machine Learning | Backend