diff --git a/examples/object_detection/android/app/src/main/java/com/google/mediapipe/examples/objectdetection/fragments/CameraFragment.kt b/examples/object_detection/android/app/src/main/java/com/google/mediapipe/examples/objectdetection/fragments/CameraFragment.kt index c59b181b..33c073d2 100644 --- a/examples/object_detection/android/app/src/main/java/com/google/mediapipe/examples/objectdetection/fragments/CameraFragment.kt +++ b/examples/object_detection/android/app/src/main/java/com/google/mediapipe/examples/objectdetection/fragments/CameraFragment.kt @@ -232,7 +232,7 @@ class CameraFragment : Fragment(), ObjectDetectorHelper.DetectorListener { p3: Long ) { try { - objectDetectorHelper.currentDelegate = p2 + objectDetectorHelper.currentModel = p2 updateControlsUi() } catch(e: UninitializedPropertyAccessException) { Log.e(TAG, "ObjectDetectorHelper has not been initialized yet.")