Skip to content

Commit 5a5de89

Browse files
committed
Snippet typo fix.
Change-Id: Ib8407bc379d53e288bd89c697acba08626c80b3b
1 parent 0dfa886 commit 5a5de89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private void detectFaces(InputImage image) {
4646
// [START set_detector_options]
4747
FaceDetectorOptions options =
4848
new FaceDetectorOptions.Builder()
49-
.setClassificationMode(FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE)
49+
.setPerformanceMode(FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE)
5050
.setLandmarkMode(FaceDetectorOptions.LANDMARK_MODE_ALL)
5151
.setClassificationMode(FaceDetectorOptions.CLASSIFICATION_MODE_ALL)
5252
.setMinFaceSize(0.15f)

android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/FaceDetectionActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FaceDetectionActivity : AppCompatActivity() {
2525
private fun detectFaces(image: InputImage) {
2626
// [START set_detector_options]
2727
val options = FaceDetectorOptions.Builder()
28-
.setClassificationMode(FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE)
28+
.setPerformanceMode(FaceDetectorOptions.PERFORMANCE_MODE_ACCURATE)
2929
.setLandmarkMode(FaceDetectorOptions.LANDMARK_MODE_ALL)
3030
.setClassificationMode(FaceDetectorOptions.CLASSIFICATION_MODE_ALL)
3131
.setMinFaceSize(0.15f)

0 commit comments

Comments
 (0)