Scan barcodes and qrcodes with MLKit. In this project MLKit and CameraX are combined with each other.
Continuously, Frames come from CameraX and will be passed to MlKit, directly. Intentionaly, We avoid manipulating frames before scan just for better performance. Afterward, The results will be manupulated. Check Sample project.
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.rvhamed:BarcodeX:VERSION'
}