Skip to content

Instantly share code, notes, and snippets.

@kongkip
Last active May 16, 2020 09:17
Show Gist options
  • Save kongkip/118a13f8437d8f4cbc068e99915034ab to your computer and use it in GitHub Desktop.
Save kongkip/118a13f8437d8f4cbc068e99915034ab to your computer and use it in GitHub Desktop.
// set no compress for tflite
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
android {
aaptOptions {
noCompress "tflite"
}
}
dependencies {
// TensorFlow Lite dependency
implementation "org.tensorflow:tensorflow-lite:2.1.0"
// Support library with image processing
implementation('org.tensorflow:tensorflow-lite-support:0.0.0-nightly')
{ changing = true }
// Configure CameraX
def camerax_version = '1.0.0-alpha06'
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment