Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / library / ocr / build.gradle.kts

build.gradle.kts14 lines · 677 BRaw
1plugins {
2 id("common-conventions-library")
3}
4dependencies {
5 // On-device OCR via PP-OCRv5 on the Vulkan compute runtime in `:library:ml`. Both
6 // models ship as `.maml` in this module's assets and the whole detect-crop-recognise
7 // pipeline is Rust; consumers only see the OcrEngine API.
8 //
9 // `implementation` is enough even though `:library:ml` supplies `libmodelrunner.so`:
10 // an Android library's jniLibs are packaged into the consuming APK transitively, and
11 // OcrEngine maps `RecognizedLine` into its own TextBox rather than re-exporting it.
12 implementation(project(":library:ml"))
13 implementation(libs.kotlinx.coroutines.android)
14}