1. Kotlin
  2. Setup

Kotlin

Setup

The Kotlin (Android) based Vision SDK is an on-device computer vision and NLP based toolkit designed to scan barcodes, QR codes, and extract structured information from logistics documents such as shipping labels, bills of lading (BOLs), and inventory/item labels. Built for real-time performance, it enables fast, offline processing without relying on cloud services. The SDK also supports advanced use cases including item retrieval, price tag extraction, and item counting, making it ideal for warehouse, retail, and logistics applications. With a focus on accuracy, speed, and device-level intelligence, the Vision SDK empowers developers to build seamless and efficient vision-based workflows directly on mobile and embedded devices.

Development Requirements

  • Android: 10+
  • Java: 17+
  • Kotlin: 1.9.0+
  • Android Gradle Plugin Version: 8.1.0+

Installation

Gradle

Gradle is a dependency manager for Gradle projects. For usage and installation instructions, visit their website.

Vision SDK is hosted on JitPack.io. First add JitPack to your root project

        maven { url = uri("https://jitpack.io") }

      

Then add the following dependency to your project's build.gradle file:

        implementation ("com.github.packagexlabs:vision-sdk-android:v2.2.0")

      

Check the latest version here.

Usage

Update AndroidManifest.xml

Since VisionSDK uses camera, your app needs to have camera permission in order for VisionSDK to work. Add the following permission in your app's AndroidManifest.xml file:

<uses-permission android:name="android.permission.CAMERA" />

Initialization

In order to setup VisionSDK in your project, you need to initialize it before accessing it.

        VisionSDK.getInstance().initialize(
   context = this,
   environment = Environment.SANDBOX
)

      

Code Samples

You can find the sample code for using the vision-sdk on our github.