CameraView
CameraView 旨在帮助Android开发者更便利地集成照相功能
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 theCameraView
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 Fotoapparat.
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 anyActivity
. - Fixes and workarounds for device-specific problems.
- Both Kotlin and Java friendly configurations.