save code
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application'
|
id 'com.android.application'
|
||||||
|
id 'org.jetbrains.kotlin.android'
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.vvl_version='1.4.321.0'
|
ext.vvl_version='1.4.321.0'
|
||||||
@@ -77,6 +78,9 @@ android {
|
|||||||
viewBinding true
|
viewBinding true
|
||||||
prefab true
|
prefab true
|
||||||
}
|
}
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = '21'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -85,4 +89,13 @@ dependencies {
|
|||||||
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
||||||
implementation 'androidx.core:core:1.15.0'
|
implementation 'androidx.core:core:1.15.0'
|
||||||
implementation 'androidx.games:games-activity:3.0.5'
|
implementation 'androidx.games:games-activity:3.0.5'
|
||||||
|
implementation 'androidx.core:core-ktx:1.17.0'
|
||||||
|
// CameraX core library
|
||||||
|
def camerax_version = '1.4.2'
|
||||||
|
implementation "androidx.camera:camera-core:$camerax_version"
|
||||||
|
implementation "androidx.camera:camera-camera2:$camerax_version"
|
||||||
|
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
||||||
|
implementation "androidx.camera:camera-view:$camerax_version"
|
||||||
|
//noinspection Aligned16KB
|
||||||
|
implementation 'com.google.mediapipe:tasks-vision:0.20230731'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application' version '8.12.2' apply false
|
id 'com.android.application' version '8.12.2' apply false
|
||||||
id 'com.android.library' version '8.12.2' apply false
|
id 'com.android.library' version '8.12.2' apply false
|
||||||
|
id 'org.jetbrains.kotlin.android' version '2.2.0' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('clean', Delete) {
|
tasks.register('clean', Delete) {
|
||||||
|
|||||||
@@ -62,11 +62,6 @@ class FaceLandmarkerHelper(
|
|||||||
return faceLandmarker == null
|
return faceLandmarker == null
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the Face landmarker using current settings on the
|
|
||||||
// thread that is using it. CPU can be used with Landmarker
|
|
||||||
// that are created on the main thread and used on a background thread, but
|
|
||||||
// the GPU delegate needs to be used on the thread that initialized the
|
|
||||||
// Landmarker
|
|
||||||
fun setupFaceLandmarker() {
|
fun setupFaceLandmarker() {
|
||||||
// Set general face landmarker options
|
// Set general face landmarker options
|
||||||
val baseOptionBuilder = BaseOptions.builder()
|
val baseOptionBuilder = BaseOptions.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user