Skip to content

About

Kotlin Multiplatform camera, text recognition, and on-device model execution for Android and iOS

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

234 Commits

Folders and files

Repository files navigation

KMP-Vision

Build your vision experience once. Bring it to Android and iOS.

Camera previews, on-device OCR, image picking, visual overlays, and model inference for Kotlin and Compose Multiplatform. Share your application logic and Compose UI, with native implementations underneath.

Documentation · Run the tutorial · Installation

Android and iPhone object-recognition concept

AI-generated concept illustration. Object detection requires your own compatible model and integration. For real native OCR screenshots and a working example, run Vision Lab.

Choose your building blocks

  • Camera: Compose preview, still capture, camera controls, and analysis frames.
  • OCR: encoded image bytes to recognized text and normalized bounding boxes.
  • Overlays: styleable rectangles and labels over your content.
  • Picker: system image selection with resizing and filters.
  • Inference: a shared API for compatible LiteRT and Core ML models.

Platform permissions, application setup, and inference model assets still need platform-specific configuration. See the documentation for supported behavior and integration requirements.

Thanks

kmp-vision is a fork of Peekaboo by onseok. Peekaboo is no longer maintained, so this project continues that camera and image-picker work. Thanks to onseok and TEAM-PREAT for the original library.

The OCR approach also draws inspiration from Amirhossein Ijadi’s Compose Multiplatform Text Recognition. Maintained by lamplis. See project origins and contribution guidance.

License

Copyright 2024 onseok

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Kotlin Multiplatform camera, text recognition, and on-device model execution for Android and iOS

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages