defaultConfig { applicationId "com.google.mlkit.vision.demo" minSdkVersion 19 multiDexEnabled true targetSdkVersion 31 versionCode 11 versionName "1.11" vectorDrawables.useSupportLibrary = true setProperty("archivesBaseName", "vision-quickstart") } buildTypes { proguard { debuggable false minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'proguard.cfg' } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { isDefault true minifyEnabled false proguardFiles 'proguard-rules.pro' } testBuildType "debug" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } // Do NOT compress tflite model files (need to call out to developers!) aaptOptions { noCompress "tflite" } repositories { // Depending on AndroidX Snapshot Builds to get the latest CameraX libs. maven { url 'https://androidx.dev/snapshots/builds/6787662/artifacts/repository/' } } dependencies { implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31' implementation 'androidx.multidex:multidex:2.0.1' // Barcode model implementation 'com.google.mlkit:barcode-scanning:17.1.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.2.0' // Object detection feature with bundled default classifier implementation 'com.google.mlkit:object-detection:17.0.0' // Object detection feature with custom classifier support implementation 'com.google.mlkit:object-detection-custom:17.0.0' // Face features implementation 'com.google.mlkit:face-detection:16.1.5' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-face-detection:17.1.0' // Text features implementation 'com.google.mlkit:text-recognition:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition:19.0.0' implementation 'com.google.mlkit:text-recognition-chinese:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition-chinese:16.0.0' implementation 'com.google.mlkit:text-recognition-devanagari:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition-devanagari:16.0.0' implementation 'com.google.mlkit:text-recognition-japanese:16
defaultConfig { applicationId "com.google.mlkit.vision.demo" minSdkVersion 19 multiDexEnabled true targetSdkVersion 31 versionCode 11 versionName "1.11" vectorDrawables.useSupportLibrary = true setProperty("archivesBaseName", "vision-quickstart") } buildTypes { proguard { debuggable false minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'proguard.cfg' } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { isDefault true minifyEnabled false proguardFiles 'proguard-rules.pro' } testBuildType "debug" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } // Do NOT compress tflite model files (need to call out to developers!) aaptOptions { noCompress "tflite" } repositories { // Depending on AndroidX Snapshot Builds to get the latest CameraX libs. maven { url 'https://androidx.dev/snapshots/builds/6787662/artifacts/repository/' } } dependencies { implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31' implementation 'androidx.multidex:multidex:2.0.1' // Barcode model implementation 'com.google.mlkit:barcode-scanning:17.1.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.2.0' // Object detection feature with bundled default classifier implementation 'com.google.mlkit:object-detection:17.0.0' // Object detection feature with custom classifier support implementation 'com.google.mlkit:object-detection-custom:17.0.0' // Face features implementation 'com.google.mlkit:face-detection:16.1.5' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-face-detection:17.1.0' // Text features implementation 'com.google.mlkit:text-recognition:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition:19.0.0' implementation 'com.google.mlkit:text-recognition-chinese:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition-chinese:16.0.0' implementation 'com.google.mlkit:text-recognition-devanagari:16.0.0' // Or comment the dependency above and uncomment the dependency below to // use unbundled model that depends on Google Play Services // implementation 'com.google.android.gms:play-services-mlkit-text-recognition-devanagari:16.0.0' implementation 'com.google.mlkit:text-recognition-japanese:16
Use code with caution. Learn more
content_copy
Sources
info
github.com/JohannBlake/codewif
github.com/buiduylinh/mlkit
subject to license (Apache - 2.0)
github.com/peekler/Android-Kotlin-BME
subject to license (Apache - 2.0)
github.com/AlexB-arch/Receipt_Scanner
github.com/bellis14/Senior_Project
subject to license (Apache - 2.0)
www.dynamsoft.com/codepool/high-density-qr-code-detection.html
github.com/TylerKay/Ethiscan
github.com/MRRyLai/Photoboxing-duel
thumb_upthumb_down
uploadGoogle it
more_vert
|