Open source
KMP Vision Camera
A high-performance camera library for Kotlin Multiplatform, on Android and iOS.
Full access to the native camera APIs (CameraX and Camera2 on Android, AVFoundation on iOS) through a single Kotlin API: devices and their capabilities, sessions with constraints, photo and video, and real-time frame processing with zero-copy native buffers. Every asynchronous operation is a suspend function, and Compose is optional.
Optional modules add barcode scanning (ML Kit, Apple Vision), location, a GPU frame resizer for ML models (Metal, Vulkan) and Skia rendering with SkSL shaders. It is a Kotlin Multiplatform port of Marc Rousavy's React Native VisionCamera (V5), keeping the same concepts and API, and is not affiliated with Margelo.
Install
Gradle
klibs.io
implementation("me.nathanfallet.visioncamera:core:1.0.0")